[SERVER-34328] Build fails due to clang 9.1's -Wunused-lambda-capture Created: 04/Apr/18  Updated: 29/Oct/23  Resolved: 09/Apr/18

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.7.4

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-31498 Make build (nearly) clang-5.0 clean Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 0

 Comments   
Comment by Githook User [ 09/Apr/18 ]

Author:

{'email': 'william.schultz@mongodb.com', 'name': 'William Schultz', 'username': 'will62794'}

Message: SERVER-34328 Fix lint
Branch: master
https://github.com/mongodb/mongo/commit/7fd2310cdbad58393855d9a06e664a3fb6ecdbea

Comment by Githook User [ 09/Apr/18 ]

Author:

{'email': 'jesse@mongodb.com', 'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis'}

Message: SERVER-34328 Remove unused lambda captures.
Branch: master
https://github.com/mongodb/mongo/commit/150955ec608a2157e723ef6e9d9f9ca58731bd8c

Comment by A. Jesse Jiryu Davis [ 05/Apr/18 ]

Ah, thanks for the tip. I'm not on the right team to press the merge button there myself.

Comment by Andrew Morrow (Inactive) [ 05/Apr/18 ]

Jesse - Thanks for the PR. It looks fine to merge. As an FYI, we generally don't try to stay warning clean on newer compilers, since it is a losing battle. Instead if you are having these warnings, you can build in a mode where warnings aren't errors by adding --disable-warnings-as-errors to your SCons invocation.

Generated at Thu Feb 08 04:36:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.