Skip to content

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

Description

@Eclips4

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

Activity

  1. picnixz commented on Sep 16, 2024

    @picnixz
    Member

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

  2. Eclips4 commented on Sep 16, 2024

    @Eclips4
    MemberAuthor

    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!

  3. vstinner commented on Sep 16, 2024

    @vstinner
    Member

    Fixed by 453da53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions