Skip to content

New build warnings: warning: unused function 'round_down' [-Wunused-function] #124122

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

Closed
Eclips4 opened this issue Sep 16, 2024 · 3 comments
Closed
Labels
type-bug An unexpected behavior, bug, or error

Comments

@Eclips4
Copy link
Member

Eclips4 commented Sep 16, 2024

Bug report

Bug description:

Popped up during the build on macOS

./Modules/_ctypes/cfield.c:49:12: warning: unused function 'round_down' [-Wunused-function]
Py_ssize_t round_down(Py_ssize_t numToRound, Py_ssize_t multiple)
           ^
./Modules/_ctypes/cfield.c:59:12: warning: unused function 'round_up' [-Wunused-function]
Py_ssize_t round_up(Py_ssize_t numToRound, Py_ssize_t multiple)
           ^
./Modules/_ctypes/cfield.c:409:12: warning: unused function 'BUILD_SIZE' [-Wunused-function]
Py_ssize_t BUILD_SIZE(Py_ssize_t bitsize, Py_ssize_t offset) {
           ^

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

@Eclips4 Eclips4 added the type-bug An unexpected behavior, bug, or error label Sep 16, 2024
@picnixz
Copy link
Member

picnixz commented Sep 16, 2024

Irit already took care of that here I think: #124010

@Eclips4
Copy link
Member Author

Eclips4 commented Sep 16, 2024

Irit already took care of that here I think: #124010

Yeah, you're right. I'm going to close this one and attached PR, sorry for making noise!

@Eclips4 Eclips4 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 16, 2024
@vstinner
Copy link
Member

Fixed by 453da53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants