[SERVER-24807] Coverity analysis defect 99680: PW.PARAMETER_HIDDEN Created: 27/Jun/16  Updated: 25/Jan/17  Resolved: 24/Aug/16

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: None
Fix Version/s: 3.3.12

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Spencer Brody (Inactive)
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: Sharding 17 (07/15/16), Sharding 18 (08/05/16), Sharding 2016-08-29
Participants:

 Description   

PW.PARAMETER_HIDDEN

Defect 99680 (STATIC_C)
Checker PW.PARAMETER_HIDDEN (subcategory none)
File: /src/mongo/client/dbclient.cpp
Parse Warning (no function name available)
/src/mongo/client/dbclient.cpp, line: 1164
declaration hides parameter "ns" (declared at line 1148)

                const std::string ns = cursorObj["ns"].String();



 Comments   
Comment by Githook User [ 24/Aug/16 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-24807 Remove hiding of 'ns' variable in DBClientWithCommands::getIndexSpecs
Branch: master
https://github.com/mongodb/mongo/commit/c62ce6037367993e0e899f6b9e3098d6aac396e2

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