-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BLD: fix some build warnings #29271
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
BLD: fix some build warnings #29271
Conversation
@@ -235,7 +235,8 @@ cdef class Packer: | |||
continue | |||
else: | |||
raise TypeError("can't serialize {thing!r}".format(thing=o)) | |||
return ret | |||
break |
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.
really? cython doesn't understand the else 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.
Its clang giving a "code will never be executed" warning
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.
I think lgtm assuming diff may be misleadingly large
@@ -22,54 +22,55 @@ ctypedef fused out_t: | |||
def diff_2d(ndarray[diff_t, ndim=2] arr, | |||
ndarray[out_t, ndim=2] out, | |||
Py_ssize_t periods, int axis): | |||
cdef: |
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.
I believe all you did was move this and not change conditions below but lmk if I am misreading
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.
The cdef here got moved up a few lines and the meat of the function got indented with an else:
to avoid unreachable-code warnings
Looks like travis finished a while ago, not sure why it still shows as yellow here |
fixed travis; green |
thanks |
No description provided.