[SERVER-60648] Coverity analysis defect 120937: Parse warning Created: 13/Oct/21  Updated: 29/Oct/23  Resolved: 27/Oct/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Sanika Phanse (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity, sharding-nyc-subteam3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2021-11-01
Participants:

 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/logical_session_id.h:152: PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE 120937 type qualifier on return type is meaningless



 Comments   
Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}

Message: SERVER-60648 Coverity analysis defect 120937: Parse warning
Branch: master
https://github.com/mongodb/mongo/commit/050d5432400617aa88df8763d48bd50270910d46

Comment by Jack Mulrow [ 22/Oct/21 ]

As part of this ticket, we should remove the const qualifiers from these return types: one and two.

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