-
Notifications
You must be signed in to change notification settings - Fork 58
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
fix type warnings with strict gcc #394
Conversation
fitsio/fitsio_pywrap.c
Outdated
PyObject* columnsobj=NULL; | ||
PyObject* array=NULL; | ||
|
||
PyObject* rowsObj=NULL; | ||
PyObject* sortindObj=NULL; | ||
PyObject *columns_obj, *array_obj, *rows_obj, *sortind_obj; |
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.
Did we want to get rid of the NULL initialization here?
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.
They are immediately read into by the module initialization, so its OK in this case. I did it for readability. But if you don't like I'm happy to set NULL
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.
by module init I meant things like PyArg_ParseTuple
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.
Never mind, I'll just set NULL
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.
Right I don't care, I just wanted to flag it.
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.
Some of the null inits have been removed. IDK if we want to do this or not?
No description provided.