Skip to content

Unused function warnings during mimalloc build on FREEBSD #111906

Closed
@furkanonder

Description

@furkanonder

Bug report

Bug description:

cc -pthread -c -fno-strict-overflow -Wsign-compare -g -Og -Wall  -O2 -pipe  -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden  -I./Include/internal -I./Include/internal/mimalloc  -I. -I./Include    -DPy_BUILD_CORE -o Objects/rangeobject.o Objects/rangeobject.c
--- Objects/obmalloc.o ---
In file included from Objects/obmalloc.c:15:
In file included from Objects/mimalloc/static.c:37:
In file included from Objects/mimalloc/prim/prim.c:22:
Objects/mimalloc/prim/unix/prim.c:66:12: warning: unused function 'mi_prim_open' [-Wunused-function]
static int mi_prim_open(const char* fpath, int open_flags) {
           ^
Objects/mimalloc/prim/unix/prim.c:69:16: warning: unused function 'mi_prim_read' [-Wunused-function]
static ssize_t mi_prim_read(int fd, void* buf, size_t bufsize) {
               ^
Objects/mimalloc/prim/unix/prim.c:72:12: warning: unused function 'mi_prim_close' [-Wunused-function]
static int mi_prim_close(int fd) {
           ^
Objects/mimalloc/prim/unix/prim.c:75:12: warning: unused function 'mi_prim_access' [-Wunused-function]
static int mi_prim_access(const char *fpath, int mode) {
           ^
--- Objects/setobject.o ---

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-freebsdbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions