Skip to content

Conversation

@prchakra
Copy link
Collaborator

No description provided.

@github-actions
Copy link

github-actions bot commented Oct 14, 2025

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

@github-actions github-actions bot changed the title FemtoUniverse: Fix some O2 linter errors [PWGCF] FemtoUniverse: Fix some O2 linter errors Oct 14, 2025
@alibuild
Copy link
Collaborator

Error while checking build/O2Physics/o2 for 92dafb8 at 2025-10-14 22:48:

## sw/BUILD/O2Physics-latest/log
/sw/SOURCES/O2Physics/13388-slc9_x86-64/0/PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackTrackSpherHarMultKtExtended.cxx:1186:35: error: 'pairType' may be used uninitialized [-Werror=maybe-uninitialized]
ninja: build stopped: subcommand failed.

Full log here.

@prchakra prchakra enabled auto-merge (squash) October 15, 2025 15:06
Copy link
Collaborator

@alibuild alibuild left a comment

Choose a reason for hiding this comment

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

Auto-approving on behalf of @prchakra.

Comment on lines +812 to +819
int pairType = 0;
if (cfgProcessPM) {
pairType = 1;
} else if (cfgProcessPP) {
pairType = 2;
} else if (cfgProcessMM) {
pairType = 3;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is just an obfuscation of magic numbers. Use enum for properly named values.

@prchakra prchakra merged commit d0e2559 into master Oct 16, 2025
18 of 21 checks passed
@prchakra prchakra deleted the prchakra-patch-2 branch October 16, 2025 01:31
ThePhDane pushed a commit to ThePhDane/O2Physics that referenced this pull request Nov 3, 2025
lmattei01 pushed a commit to lmattei01/O2Physics that referenced this pull request Dec 5, 2025
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.

4 participants