-
Notifications
You must be signed in to change notification settings - Fork 0
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
runtime: fix -Wsign-compare
warnings
#430
Conversation
Maybe we should build with |
Sure, we can do that, too. I think the |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after adding -Wsign-compare
here.
@ayrtonm, hmm, now I'm hitting other |
Sorry that was for all compartments. This is probably where we want the flag so it'll only apply to libia2.a https://github.com/immunant/IA2-Phase2/blob/main/runtime/libia2/CMakeLists.txt#L5 |
Actually the last place I linked wouldn't apply it to the original places you fixed, only the sources in runtime/libia2 so I'm fine leaving the flag out for now. |
Projects being rewritten and compiled may have warnings/errors like this turned on, so it's simpler to just fix them. Note that this doesn't set `-Werror=sign-compare` in `cmake` because that'll apply to all of the tests, too. We just want to make sure that included headers work under different possible warning/error configurations a project might set.
b8b8046
to
a87ec12
Compare
Merging now since @ayrtonm already approved this version and we decided not to set |
Projects being rewritten and compiled may have warnings/errors like this turned on, so it's simpler to just fix them.
Note that this doesn't set
-Werror=sign-compare
incmake
because that'll apply to all of the tests, too. We just want to make sure that included headers work under different possible warning/error configurations a project might set.