[SERVER-55774] Coverity analysis defect 118027: Parse warning Created: 04/Apr/21  Updated: 29/Oct/23  Resolved: 26/Apr/21

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Arun Banala
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: Query Execution 2021-05-03
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/exec/sbe/values/value.cpp:390: PW.PARAMETER_HIDDEN 118027 declaration hides parameter "val" (declared at line 386)
/src/mongo/db/exec/sbe/values/value.cpp:615: PW.PARAMETER_HIDDEN 118027 detected during instantiation of "void mongo::sbe::value::writeValueToStream(T &, mongo::sbe::value::TypeTags, mongo::sbe::value::Value) [with T=std::ostream]" at line 615



 Comments   
Comment by Githook User [ 26/Apr/21 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-55774 Fix Coverity analysis defect 118027
Branch: master
https://github.com/mongodb/mongo/commit/18e5d33197e5d738378f4019f9a5b400d9caa796

Comment by Eric Milkie [ 04/Apr/21 ]

This problem occurs in three other places in value.cpp as well.

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