-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[llvm14][Sim] Fixed set but not used variables warnings #40312
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40312/33386 ERROR: Build errors found during clang-tidy run.
|
I will try to study R-hadron hadronic physics code (which is really messy). @bsunanda , can you, please, have a look into test codes for forward detectors? In general, it is OK to remove commented lines. What I am not sure is Bsc modifications. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40312/33388
|
please test |
A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master. It involves the following packages:
@civanch, @mdhildreth can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c77681/29802/summary.html Comparison SummarySummary:
|
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
@civanch this PR comments out a lot of (by now dead) code. |
@perrotta , this is a very old code (was written ~20 years ago) for R-hadron interaction with matter. In my view, there is no real physics model behind but something very approximate. However, when I asked in Exotica group if we should rewrite this code or keep as it is they answer: "please, keep". I would propose to merge this PR as it is. I will try to find out a time to, at least, put comments explaining (first of all to myself)), what the code is doing and will remove commented lines. I will just create an issue for that. This PR may be merged. |
+1 |
In CLANG IBs ( with llvm 14), we see few warnings about variable set but not used. This PR fixes few of those for
Sim
packages. I also cleanup some dead code which was not doing any thing, please let me know if this code should be deleted instead of commenting out.