[SERVER-43007] Coverity analysis defect 113418: PW.PARAMETER_HIDDEN Created: 23/Aug/19  Updated: 27/Oct/23  Resolved: 22/Oct/19

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Ian Boros
Resolution: Gone away Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Sprint: Query 2019-09-23, Query 2019-10-07, Query 2019-10-21, Query 2019-11-04
Participants:

 Description   

PW.PARAMETER_HIDDEN

Defect 113418 (STATIC_C)
Checker PW.PARAMETER_HIDDEN (subcategory none)
File: /src/mongo/db/query/projection_parser.cpp
Parse Warning (no function name available)
/src/mongo/db/query/projection_parser.cpp, line: 137
declaration hides parameter "obj" (declared at line 118)

                BSONObj obj = elem.embeddedObject();



 Comments   
Comment by Ian Boros [ 22/Oct/19 ]

Went away inĀ SERVER-42988.

Comment by Bernard Gorman [ 26/Aug/19 ]

This just needs a variable name to be de-duplicated. Could be incidentally fixed if more work is done on projection_parser.cpp in another ticket.

Generated at Thu Feb 08 05:02:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.