Skip to content

[PWGHF] Fix redundant initialization in charm baryon candidate creator - #18109

Open
mtorresc15 wants to merge 2 commits into
AliceO2Group:masterfrom
mtorresc15:fix-cppcheck-candidate-creator
Open

mtorresc15 wants to merge 2 commits into
AliceO2Group:masterfrom
mtorresc15:fix-cppcheck-candidate-creator

Conversation

@mtorresc15

Copy link
Copy Markdown
Contributor

Fixes the cppcheck redundant initialization error reported by MegaLinter after #18047.
arrMassCharmBaryon is now declared without initialization, since it is assigned in all subsequent if constexpr branches before use.

@github-actions github-actions Bot added the pwghf PWG-HF label Sep 29, 2026
@github-actions github-actions Bot changed the title Fix redundant initialization in charm baryon candidate creator [PWGHF] Fix redundant initialization in charm baryon candidate creator Sep 29, 2026
@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 0 warnings, 🔕 1 disabled

Comment thread PWGHF/TableProducer/candidateCreatorXic0Omegac0.cxx Outdated

@vkucera vkucera left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mtorresc15 Thanks for the fix. Please see my suggestion.

Default-initialised arrMassCharmBaryon

Co-authored-by: Vít Kučera <26327373+vkucera@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pwghf PWG-HF

Development

Successfully merging this pull request may close these issues.

2 participants