[SERVER-20001] Coverity analysis defect 73592: PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE Created: 18/Aug/15  Updated: 13/Oct/15  Resolved: 18/Aug/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.1.7

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 8 08/28/15
Participants:

 Description   

PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE

Defect 73592 (STATIC_C)
Checker PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE (subcategory none)
File: /src/mongo/db/modules/enterprise/src/encryptdb/symmetric_crypto.cpp
Parse Warning (no function name available)
/src/mongo/db/modules/enterprise/src/encryptdb/symmetric_crypto.cpp, line: 57
type qualifier on return type is meaningless

    const aesMode getCipherModeFromString(const std::string& mode) {



 Comments   
Comment by Githook User [ 13/Oct/15 ]

Author:

{u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}

Message: SERVER-20001 SERVER-20003 Address Coverity
Branch: artree
https://github.com/10gen/mongo-enterprise-modules/commit/b41bc7767b73fa8dd65bfcdbb2ffb550773da7c0

Comment by Githook User [ 18/Aug/15 ]

Author:

{u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}

Message: SERVER-20001 SERVER-20003 Address Coverity
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/b41bc7767b73fa8dd65bfcdbb2ffb550773da7c0

Comment by Eric Milkie [ 18/Aug/15 ]

A few other functions in this file have this same issue, return values adorned with 'const'.

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