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

Fix two test failures with functions marked nodiscard. #1261

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hageboeck
Copy link
Member

@hageboeck hageboeck commented Feb 13, 2025

With gcc-15, the dereferencing and the + operator of iterators are marked nodiscard. This makes two tests fail, because the warning leads to a non-zero diff.

cling/dict/runoperators.C Outdated Show resolved Hide resolved
Copy link
Member

@pcanal pcanal left a comment

Choose a reason for hiding this comment

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

LGTM but we probably should have a companion PR in root to test the changes.

With gcc-15, the dereferencing or the + operator of iterators are marked
nodiscard. This makes two tests fail, because the warning leads to a
non-zero diff.
@hageboeck
Copy link
Member Author

LGTM but we probably should have a companion PR in root to test the changes.

You are very right. It's running here, and uncovered that I fixed two broken windows tests. 😅

TEST FAILURES:
1352:roottest-cling-dict-runoperators_WILL_FAIL
1451:roottest-cling-stl-default-VectorSort_WILL_FAIL

@bellenot

@bellenot
Copy link
Member

@hageboeck Cool! Congrats!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants