Skip to content

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

Merged
merged 5 commits into from
Oct 30, 2019
Merged

Conversation

jbrockmendel
Copy link
Member

No description provided.

@@ -235,7 +235,8 @@ cdef class Packer:
continue
else:
raise TypeError("can't serialize {thing!r}".format(thing=o))
return ret
break
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Member

@WillAyd WillAyd left a 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:
Copy link
Member

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

Copy link
Member Author

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

@WillAyd WillAyd added the Clean label Oct 29, 2019
@jbrockmendel
Copy link
Member Author

Looks like travis finished a while ago, not sure why it still shows as yellow here

@jbrockmendel
Copy link
Member Author

fixed travis; green

@jreback jreback added this to the 1.0 milestone Oct 30, 2019
@jreback jreback merged commit 58ecadf into pandas-dev:master Oct 30, 2019
@jreback
Copy link
Contributor

jreback commented Oct 30, 2019

thanks

@jbrockmendel jbrockmendel deleted the build_warns branch October 30, 2019 14:28
Reksbril pushed a commit to Reksbril/pandas that referenced this pull request Nov 18, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants