[SERVER-54388] Coverity analysis defect 117587: Parse warning Created: 08/Feb/21  Updated: 29/Oct/23  Resolved: 12/Feb/21

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Nicholas Zolnierz
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   

Parse warning

A parse warning may reduce maintainability of the code, or it may indicate a serious error. A parse warning from the Coverity parser may indicate a bug, or poor coding practice
/src/mongo/db/pipeline/document_source_set_window_fields.cpp:85: PW.PARAMETER_HIDDEN 117587 declaration hides parameter "elem" (declared at line 62)



 Comments   
Comment by Githook User [ 12/Feb/21 ]

Author:

{'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-54388 Fix variable shadowing in document_source_set_window_fields.cpp
Branch: master
https://github.com/mongodb/mongo/commit/399ce1d4f498b815290cd0f16c881e0e22ebeda8

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