Skip to content

Wrap unused argument in timemodule with Py_UNUSED #125350

@rruuaanng

Description

@rruuaanng

Bug report

Bug description:

I've observed that in getpath.c, all unused function parameters are marked with Py_UNUSED. It seems that in timemodule.c, although the function argument are named unused, they do not actually use __attribute__((unused)). I'm not sure if this is intentional, but doing so can eliminate warnings from the compiler under -Wall.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions