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

Common: Event selection: Fix compilation warning #6721

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

vkucera
Copy link
Collaborator

@vkucera vkucera commented Jul 2, 2024

@altsybee This fixes the int-in-bool-context warning introduced in #6548 and also fixes the unnecessary evaluation of the condition and assignment when the result is already known.
Please check carefully that the logic has been preserved.

@vkucera vkucera marked this pull request as ready for review July 2, 2024 14:13
@altsybee
Copy link
Contributor

altsybee commented Jul 3, 2024

hello @vkucera , thanks for the optimisation - yes, the logic is preserved

Copy link
Contributor

@altsybee altsybee left a comment

Choose a reason for hiding this comment

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

thanks for this fix! yes, the logic is preserved

@vkucera
Copy link
Collaborator Author

vkucera commented Jul 4, 2024

@ktf @jgrosseo @iarsene @ddobrigk Can you please merge this?

@vkucera
Copy link
Collaborator Author

vkucera commented Jul 8, 2024

@ktf @jgrosseo @iarsene @ddobrigk Can you please merge this?

Bump

@jgrosseo jgrosseo merged commit 06973c4 into AliceO2Group:master Jul 9, 2024
10 checks passed
@vkucera vkucera deleted the fix-warnings-event-selection branch July 9, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants