[SERVER-30570] Coverity analysis defect 101918: PW.PARAMETER_HIDDEN Created: 08/Aug/17  Updated: 30/Oct/23  Resolved: 14/Aug/17

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Kaloian Manassiev
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
Participants:

 Description   

PW.PARAMETER_HIDDEN

Defect 101918 (STATIC_C)
Checker PW.PARAMETER_HIDDEN (subcategory none)
File: /src/mongo/s/commands/cluster_aggregate.cpp
Parse Warning (no function name available)
/src/mongo/s/commands/cluster_aggregate.cpp, line: 103
declaration hides parameter "result" (declared at line 90)

        for (const auto& result : shardResults) {



 Comments   
Comment by Githook User [ 14/Aug/17 ]

Author:

{'name': 'Kaloian Manassiev', 'username': 'kaloianm', 'email': 'kaloian.manassiev@mongodb.com'}

Message: SERVER-30570 Change the name of a loop variable masking a parameter name
Branch: master
https://github.com/mongodb/mongo/commit/1517ce9cd06ca1fe1f19c544f799e60f74732608

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