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

BUG: objToJson.c - fix return value #31482

Merged
merged 3 commits into from
Feb 2, 2020

Conversation

alimcmaster1
Copy link
Member

@alimcmaster1 alimcmaster1 commented Jan 31, 2020

@alimcmaster1
Copy link
Member Author

Seems to not work on mac:

image

@WillAyd
Copy link
Member

WillAyd commented Jan 31, 2020

Not at a computer to check but just might want to return NULL at the end of the function instead of changing it from a void pointer to void. I think original error is that the import_array() macro may only return that in some versions, so can force to work for all by returning NULL (though also a little strange)

@alimcmaster1
Copy link
Member Author

alimcmaster1 commented Feb 1, 2020

Thanks Will - confirmed we no longer see the below warnings with this change.
control reaches end of non-void function

https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=27360&view=logs&j=3a03f79d-0b41-5610-1aa4-b4a014d0bc70&t=fe74a338-551b-5fbb-553d-25f48b1836e8

@alimcmaster1 alimcmaster1 changed the title BUG: objToJson.c - remove generic pointer BUG: objToJson.c - fix return value Feb 1, 2020
@jreback jreback added this to the 1.0.1 milestone Feb 1, 2020
@jreback jreback added the IO JSON read_json, to_json, json_normalize label Feb 1, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

@alimcmaster1 can you add a note in the whatsnew (1.0.1), ping on green.

@jreback
Copy link
Contributor

jreback commented Feb 2, 2020

thanks @alimcmaster1 ping on green (ex the 37 build which i just have to backport to CI).

@alimcmaster1
Copy link
Member Author

@jreback - All green ex 37. I can merge #31573 into this branch

@jreback jreback merged commit 119360d into pandas-dev:master Feb 2, 2020
@jreback
Copy link
Contributor

jreback commented Feb 2, 2020

thanks @alimcmaster1

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Feb 2, 2020
@alimcmaster1 alimcmaster1 deleted the mcmali-json branch February 2, 2020 17:10
jreback pushed a commit that referenced this pull request Feb 2, 2020
Co-authored-by: alimcmaster1 <alimcmaster1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO JSON read_json, to_json, json_normalize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: objToJSON "nonvoid function does not return a value" error is back
3 participants