[SERVER-59608] Coverity analysis defect 120502: Parse warning Created: 26/Aug/21  Updated: 29/Oct/23  Resolved: 02/Sep/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0, 4.4.12, 5.0.7

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-59610 Coverity analysis defect 120585: Pars... Closed
is duplicated by SERVER-59611 Coverity analysis defect 120593: Pars... Closed
Problem/Incident
is caused by SERVER-59522 HealthCheckStatus should track fault ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4
Sprint: Service Arch 2021-09-06
Participants:
Story Points: 1

 Description   

Parse warning

A parse warning may reduce maintainability of the code, or it may indicate a serious error. A parse warning from the Coverity parser may indicate a bug, or poor coding practice
/src/mongo/db/process_health/health_check_status.h:116: PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE 120502 type qualifier on return type is meaningless



 Comments   
Comment by Githook User [ 28/Dec/21 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-59608 remove const from return type
Branch: v4.4
https://github.com/mongodb/mongo/commit/39cbd54a4f7e3b362cd60595594a0685f2e319e9

Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 02/Sep/21 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-59608 remove const from return type
Branch: master
https://github.com/mongodb/mongo/commit/57837c97198718590959d9ef525d29e26805c500

Generated at Thu Feb 08 05:47:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.