[SERVER-33419] Use [[nodiscard]] for MONGO_WARN_UNUSED_RESULT_CLASS on GCC>=7 Created: 21/Feb/18  Updated: 29/Oct/23  Resolved: 03/Mar/18

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.7.3

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2018-02-26, Platforms 2018-03-12
Participants:

 Description   

g++7 added support for [[nodiscard]] with the semantics we want. Doing this will make my work on Future easier.



 Comments   
Comment by Githook User [ 03/Mar/18 ]

Author:

{'email': 'mathias@10gen.com', 'name': 'Mathias Stearn', 'username': 'RedBeard0531'}

Message: SERVER-33419 Use [[nodiscard]] for MONGO_WARN_UNUSED_RESULT_CLASS on GCC>=7
Branch: master
https://github.com/mongodb/mongo/commit/50a411f39f71cea0f6e721495f8cc35434cdef15

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