Skip to content

[win32] suppress compiler warnings#21992

Merged
linev merged 3 commits intoroot-project:masterfrom
linev:win_warn2
Apr 23, 2026
Merged

[win32] suppress compiler warnings#21992
linev merged 3 commits intoroot-project:masterfrom
linev:win_warn2

Conversation

@linev
Copy link
Copy Markdown
Member

@linev linev commented Apr 21, 2026

Appears in ROOT build.

linev added 3 commits April 21, 2026 13:15
Windows complains that return value from std::make_unique is ignored
Windows complain about unreferenced local variable
Windows issue C4804 warning with unsafe type of 'bool' operation
@linev linev requested a review from bellenot April 21, 2026 11:17
@linev linev self-assigned this Apr 21, 2026
Copy link
Copy Markdown
Member

@bellenot bellenot 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 I'll let the final word to the other reviewers

Copy link
Copy Markdown
Contributor

@jblomer jblomer left a comment

Choose a reason for hiding this comment

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

Fine for RNTupleDS. It relies on the fact that ROOT::NTupleSize_t has the same range than uint64_t (the biggest unsigned integer). To be pedantic, we could also statically assert that fact, but I think it is fine as is.

@linev
Copy link
Copy Markdown
Member Author

linev commented Apr 21, 2026

@jblomer

Can you approve?

Two other changes are in the tests and just suppress warnings about unused variable and ignored return value

@github-actions
Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 11h 48m 15s ⏱️
 3 838 tests  3 836 ✅  1 💤 1 ❌
75 760 runs  75 741 ✅ 18 💤 1 ❌

For more details on these failures, see this check.

Results for commit 6b8302f.

@linev linev merged commit 1875356 into root-project:master Apr 23, 2026
31 of 33 checks passed
@linev linev deleted the win_warn2 branch April 23, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants