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

Fix some compiler warnings #1774

Merged
merged 6 commits into from
Mar 26, 2024
Merged

Fix some compiler warnings #1774

merged 6 commits into from
Mar 26, 2024

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented Mar 4, 2024

This PR fixes some compiler warnings that I noticed in the failed Windows build in PR #1773. There are two classes of fixes:

  • Fix occurrences of int used to represent the size of a tuple / list / dict. Those should be Py_ssize_t
  • Fix two functions that treat a mask as having type int, when it should be unsigned int. All the actual masks used have type unsigned int.

The warnings themselves are relatively harmless, but silencing them gives us a better chance of noticing warnings that we should be taking notice of.

The PR also adds a -v flag to the pip install commands that install Traits, so that compiler warnings will always be visible in the build log. Without the -v, we only get to see the warnings for failed builds.

Copy link
Contributor

@corranwebster corranwebster left a comment

Choose a reason for hiding this comment

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

Changes LGTM

@mdickinson mdickinson merged commit 53654f9 into main Mar 26, 2024
29 checks passed
@mdickinson mdickinson deleted the fix/compiler-warnings branch March 26, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants