-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
Regression: objToJSON "nonvoid function does not return a value" error is back #31463
Comments
Taking a look, the reason for the change was the return value was no longer compatible with numpy master. (Our What's your use case/why do you need this function to return a value? (Given its really an internal to pandas) Agree there are some warnings related to this: Think that's due to the fact the signature is to return a void pointer |
Just out of curiosity why are you changing the setup file to error for this warning specifically? Sure can fix but note that our build isn’t warning free (if you search issue tracker will see another issue for that) so a little risky to modify the setup in until that is achieved |
@WillAyd This isn't a specific thing for this package. We are packing it for openSUSE Linux and changing this warning (and some others) to errors is enforced by the build system for the entire entire distribution. |
The open issue mentioned is #30609 - in the meantime if there's a way to error on the codes you need while keeping the rest as warnings I think would accept a patch for that. |
@alimcmaster1 It isn't really about a use case, but rather about not allowing undefined, potentially unsafe behavior at the compiler level. See, for example, CERT C coding guidelines MSC37-C:
|
That patch fixes the warning but doesn't include the flags you are compiling with. Probably worth proposing that in a separate PR to prevent regression |
There was an issue in 2013, #5326, where
initObjToJSON
inpandas/_libs/src/ujson/python/objToJSON.c
was causing a build error due to it lacking a return value. Specifically, the issue was:This was fixed at the time in #5334. However, a recent commit, #30710, removed the return value again. This has caused the warning/error to reappear, causing our builds of pandas 1.0.0 to fail. The warning is appearing in your CI builds as well. The difference is that we have it configured as an error.
Would it be possible to set a valid return value for the function? Thank you.
The text was updated successfully, but these errors were encountered: