Skip to content

[Common] Fix problems found by Cppcheck#14178

Merged
ddobrigk merged 13 commits into
AliceO2Group:masterfrom
vkucera:cppcheck-common
Jan 15, 2026
Merged

[Common] Fix problems found by Cppcheck#14178
ddobrigk merged 13 commits into
AliceO2Group:masterfrom
vkucera:cppcheck-common

Conversation

@vkucera

@vkucera vkucera commented Dec 11, 2025

Copy link
Copy Markdown
Collaborator

Please double-check the changes carefully.

@github-actions

github-actions Bot commented Dec 11, 2025

Copy link
Copy Markdown

O2 linter results: ❌ 146 errors, ⚠️ 144 warnings, 🔕 47 disabled

@github-actions github-actions Bot changed the title Fix problems found by Cppcheck [Common] Fix problems found by Cppcheck Dec 11, 2025
@vkucera

vkucera commented Dec 16, 2025

Copy link
Copy Markdown
Collaborator Author

@ddobrigk Which PDG code should be used to fix the duplicated condition in Common/TableProducer/selectionStudyTable.cxx?

@vkucera

vkucera commented Dec 18, 2025

Copy link
Copy Markdown
Collaborator Author

@ddobrigk Ping

ddobrigk
ddobrigk previously approved these changes Dec 18, 2025
@ddobrigk

Copy link
Copy Markdown
Collaborator

@ddobrigk Which PDG code should be used to fix the duplicated condition in Common/TableProducer/selectionStudyTable.cxx?

Sorry, overlooked this. That second loop should be removed, as it is spurious (in a part of the code that was in the end not used for anything significnat yet, so no big deal)

@vkucera

vkucera commented Dec 19, 2025

Copy link
Copy Markdown
Collaborator Author

@ddobrigk Which PDG code should be used to fix the duplicated condition in Common/TableProducer/selectionStudyTable.cxx?

Sorry, overlooked this. That second loop should be removed, as it is spurious (in a part of the code that was in the end not used for anything significnat yet, so no big deal)

I removed the duplicated block.

@vkucera vkucera marked this pull request as ready for review January 13, 2026 05:03
@vkucera vkucera requested review from a team, alibuild, iarsene, jgrosseo and ktf as code owners January 13, 2026 05:03
@ddobrigk

Copy link
Copy Markdown
Collaborator

Can someone from the TPC crew perhaps just take another look at the loop that was touched by this PR? @amaringarcia - thanks!

@lubynets

Copy link
Copy Markdown
Contributor

Can someone from the TPC crew perhaps just take another look at the loop that was touched by this PR? @amaringarcia - thanks!

Dear All,
I had a look at the PR on Ana's request. It looks fine to me: the PR either fixes c++ issues without change of the observed behavior, or changes the observed behavior in a correct side.
The only thing which is not obvious to me without knowledge of the context is the removed loop. But since David indicated that loop as spurious, probably the removal is fine.
Or was your, @ddobrigk, question related to a specific loop in the PR, in particular the logic of the mentioned one?

@ddobrigk ddobrigk enabled auto-merge (squash) January 15, 2026 09:45
@ddobrigk ddobrigk merged commit 6a795e2 into AliceO2Group:master Jan 15, 2026
12 of 13 checks passed
@vkucera vkucera deleted the cppcheck-common branch January 15, 2026 10:41
FrancescaCasillo pushed a commit to FrancescaCasillo/O2Physics that referenced this pull request Jan 26, 2026
fcolamar pushed a commit to fcolamar/O2Physics that referenced this pull request Feb 4, 2026
karlazertova pushed a commit to karlazertova/O2Physics that referenced this pull request Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants