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

Change FB_NELEM return type to unsigned and resolve all FB_NELEM related Wsign-compare warnings #8338

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

Conversation

Noremos
Copy link
Contributor

@Noremos Noremos commented Dec 4, 2024

FB_NELEM returns the size of the input array, which is always unsigned, but the function returns an int. It is a bit confusing, so I decided to change the type. It fixed some Wsign-compare warnings but added a bunch of new ones. Therefore, I included resolving them in the PR.

Copy link
Member

@dyemanov dyemanov left a comment

Choose a reason for hiding this comment

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

I've added a few minor comments, but I'm not going to insist if you consider it unnecessary.

src/jrd/filters.cpp Outdated Show resolved Hide resolved
src/jrd/par.cpp Outdated Show resolved Hide resolved
src/yvalve/gds.cpp Outdated Show resolved Hide resolved
src/yvalve/gds.cpp Outdated Show resolved Hide resolved
@Noremos
Copy link
Contributor Author

Noremos commented Dec 4, 2024

I've missed one warning in the sort.cpp file and fixed it in the last commit

@aafemt
Copy link
Contributor

aafemt commented Dec 4, 2024

A lot of conflict will be caused by this PR to others. Perhaps they should be merged first.

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.

4 participants