Skip to content
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

Unused function warnings during mimalloc build on FREEBSD #111906

Closed
furkanonder opened this issue Nov 9, 2023 · 1 comment
Closed

Unused function warnings during mimalloc build on FREEBSD #111906

furkanonder opened this issue Nov 9, 2023 · 1 comment
Labels
build The build process and cross-build OS-freebsd type-bug An unexpected behavior, bug, or error

Comments

@furkanonder
Copy link
Contributor

furkanonder commented Nov 9, 2023

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

@furkanonder furkanonder added type-bug An unexpected behavior, bug, or error build The build process and cross-build labels Nov 9, 2023
vstinner pushed a commit that referenced this issue Nov 14, 2023
Fix `unused function` warnings during mimalloc build on FreeBSD.
@vstinner
Copy link
Member

Fixed by 0ff6368

aisk pushed a commit to aisk/cpython that referenced this issue Feb 11, 2024
…n#111907)

Fix `unused function` warnings during mimalloc build on FreeBSD.
Glyphack pushed a commit to Glyphack/cpython that referenced this issue Sep 2, 2024
…n#111907)

Fix `unused function` warnings during mimalloc build on FreeBSD.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build OS-freebsd type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants