-
Notifications
You must be signed in to change notification settings - Fork 89
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
refactor: eliminate many of the compiler warnings. #1858
Conversation
Codecov Report
Additional details and impacted files
|
MacOS and Linux can't agree on whether the string format for
These are debugging print-outs for the ForthMachine, rarely used. |
Windows has a few complaints:
|
Yes, that did it! And for the MacOS, Linux disagreement about |
I don't see any warnings in CI. On my Mac, I see just one, and on Linux, none. @ianna, could you review this and make sure I'm not bulldozing over something important? |
The casts don't prevent the problems the warnings are warning about, but they do make type assumptions explicit in the code, which would make it easier to debug the kinds of errors the warnings are warning about, if that ever happens (integer overflows and stuff). |
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.
@jpivarski - Looks great! There are no compiler warnings on my Mac! Thanks!
I'm approving it - with a few comments about the removed variable names. I think, it would be nice to tidy up the kernels (if they are still in use) and the ForthOutputBuffer
APIs. I'll leave it up to you.
The Regular
layout builder example with an unbalanced begin
and end
list looks odd to me.
src/cpu-kernels/awkward_ListArray_getitem_next_array_advanced.cpp
Outdated
Show resolved
Hide resolved
Okay, all of the cases in which an argument is not needed is now documented with the argument name in a comment ( |
I haven't done anything about the linker warnings (the whole build process is changing in #1778), and I wasn't sure what to do about warnings against aliasing arrays in the ForthMachine. That's kinda how the whole thing works...
📚 The documentation for this PR will be available at https://awkward-array.readthedocs.io/en/jpivarski-squash-compiler-warnings/ once Read the Docs has finished building 🔨