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

MessageBucketDevice Sign Comparison Warnings #638

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

ptheywood
Copy link
Member

Use IntT in place of unsigned int where required in MessageBucketDevice

This resolves the clang warnings about sign comparison.

Closes #554

@Robadob
Copy link
Member

Robadob commented Aug 11, 2021

snip (Think I see my mistake)

@ptheywood
Copy link
Member Author

ptheywood commented Aug 11, 2021

It was comparisons like lines 322 and 335 I think:

Wasn't sure if the IntT or unsigned int was correct, but went with IntT as that felt more intentional.

I'm not sure why only clang was generating the warning though, especially as its code that should only be seen by nvcc (which should also be generating sign comparison warnings anyway?)

@Robadob
Copy link
Member

Robadob commented Aug 11, 2021

Yeah I removed my comment. I noticed the docucomment already said IntT

@ptheywood ptheywood merged commit a971f98 into master Aug 18, 2021
@ptheywood ptheywood deleted the bucket-sign-comparison branch August 18, 2021 15:10
@ptheywood ptheywood added the v2.0.0-alpha.1 Issues merged in to the 2.0.0-alpha.1 release label Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.0.0-alpha.1 Issues merged in to the 2.0.0-alpha.1 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BucketDevice.h sign comparison warning (clang)
2 participants