[SERVER-60151] Remove application of C++20 deprecation suppressions Created: 22/Sep/21 Updated: 29/Oct/23 Resolved: 18/May/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Juan Gu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | post-c++20 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Assigned Teams: |
Server Development Platform
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
We need to apply -Wno-deprecation when using GCC 11 in C++20 mode so we can get across the transition around explicit capture of this, per https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100493. Once we are fully in C++20 mode, we should remove the suppression of deprecation warnings after either adding the now-required this where required, or by making the value capture lists explicit. |
| Comments |
| Comment by Andrew Morrow (Inactive) [ 30/Dec/21 ] |
|
We will also be adding _SILENCE_ALL_CXX20_DEPRECATION_WARNINGS for MSVS 2022, so we should remove that as well once we are fully in C++20 and have removed deprecated usage. |