Skip to content

Compiler warnings in _iomodule.c #103617

Closed
@erlend-aasland

Description

@erlend-aasland

I'm getting a compiler warning for _iomodule.c:

./Modules/_io/_iomodule.c:649:15: warning: incompatible function pointer types initializing 'freefunc' (aka 'void (*)(void *)') with an expression of type 'void (PyObject *)' (aka 'void (struct _object *)') [-Wincompatible-function-pointer-types]
    .m_free = iomodule_free,
              ^~~~~~~~~~~~~

Linked PRs

Metadata

Metadata

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