[SERVER-29530] Coverity analysis defect 101665: PW.PARAMETER_HIDDEN Created: 09/Jun/17  Updated: 08/Jan/24  Resolved: 24/Aug/17

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.5.13

Type: Bug Priority: Trivial - P5
Reporter: Coverity Collector User Assignee: Andrew Morrow (Inactive)
Resolution: Fixed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2017-06-19, Platforms 2017-07-10, Platforms 2017-09-11
Participants:

 Description   

PW.PARAMETER_HIDDEN

Defect 101665 (STATIC_C)
Checker PW.PARAMETER_HIDDEN (subcategory none)
File: /src/mongo/executor/connection_pool_test_fixture.cpp
Parse Warning (no function name available)
/src/mongo/executor/connection_pool_test_fixture.cpp, line: 212
declaration hides parameter "cb" (declared at line 196)

            auto cb = connPtr->_refreshCallback;



 Comments   
Comment by Ramon Fernandez Marina [ 24/Aug/17 ]

Author:

{'username': u'acmorrow', 'name': u'Andrew Morrow', 'email': u'acm@mongodb.com'}

Message:SERVER-29530 Fix variable shadowing in conn pool test fixture
Branch:master
https://github.com/mongodb/mongo/commit/693f7c656aaea0f96af0032a46953a407a58eae9

Comment by Mira Carey [ 09/Jun/17 ]

This is on the trivial end. There's no unintentional shadowing going on (so there's no bug here), but it is bad style.

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