[SERVER-28906] Coverity analysis defect 100733: PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE Created: 21/Apr/17  Updated: 27/Oct/23  Resolved: 01/Aug/17

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

Type: Bug Priority: Minor - P4
Reporter: Coverity Collector User Assignee: Dianna Hohensee (Inactive)
Resolution: Gone away Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2017-07-31, Sharding 2017-08-21
Participants:

 Description   

PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE

Defect 100733 (STATIC_C)
Checker PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE (subcategory none)
File: /src/mongo/s/catalog/type_shard_collection.cpp
Parse Warning (no function name available)
/src/mongo/s/catalog/type_shard_collection.cpp, line: 220
type qualifier on return type is meaningless

    const long long ShardCollectionType::getRefreshSequenceNumber() const {



 Comments   
Comment by Dianna Hohensee (Inactive) [ 01/Aug/17 ]

That function no longer exists. Closing.

Comment by Eric Milkie [ 21/Apr/17 ]

Also 7 other defects that are similar issues in type_shard_collection.cpp/.h, in that return value types are const-qualified (which has no effect). Their defect id's are 100727-100733.

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