Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrackMerger dead assignment: hit2 = hit => his = hit2 #17580

Closed
slava77 opened this issue Feb 20, 2017 · 9 comments
Closed

TrackMerger dead assignment: hit2 = hit => his = hit2 #17580

slava77 opened this issue Feb 20, 2017 · 9 comments

Comments

@slava77
Copy link
Contributor

slava77 commented Feb 20, 2017

#17511 (review)

Static analyzer points out that hit2 = hit; is a dead assignment.
Based on the PRINT content, it looks like the code should be hit = hit2;

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 20, 2017

A new Issue was created by @slava77 Slava Krutelyov.

@davidlange6, @Dr15Jones, @smuzaffar can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor

assign reconstruction

@cmsbuild
Copy link
Contributor

New categories assigned: reconstruction

@cvuosalo,@slava77 you have been requested to review this Pull request/Issue and eventually sign? Thanks

@slava77
Copy link
Contributor Author

slava77 commented Jun 28, 2017

@perrotta
Copy link
Contributor

@VinInn @boudoul

Still there even in 940:
https://github.com/cms-sw/cmssw/blob/CMSSW_9_4_0/RecoTracker/FinalTrackSelectors/plugins/TrackMerger.cc#L165-L167

I wonder if that code/method is ever used...

@VinInn
Copy link
Contributor

VinInn commented Nov 11, 2017

it just saved an invalid hit instead of a pretended better one, not a big harm...

@VinInn
Copy link
Contributor

VinInn commented Nov 11, 2017

addressed in #21279

@perrotta
Copy link
Contributor

+1
Fixed with #21279, now merged in 10_0_X
Thank you @VinInn

@cmsbuild
Copy link
Contributor

This issue is fully signed and ready to be closed.

@slava77 slava77 closed this as completed Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants