Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unused function warnings during mimalloc build on NetBSD #123826

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

Closed
furkanonder opened this issue Sep 8, 2024 · 0 comments
Closed

Unused function warnings during mimalloc build on NetBSD #123826

furkanonder opened this issue Sep 8, 2024 · 0 comments
Labels
3.13 bugs and security fixes 3.14 bugs and security fixes build The build process and cross-build OS-netbsd

Comments

@furkanonder
Copy link
Contributor

furkanonder commented Sep 8, 2024

Bug description:

gcc -pthread -c -fno-strict-overflow -Wsign-compare -g -Og -Wall  -O2  -fstack-protector-strong -Wtrampolines -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/setobject.o Objects/setobject.c
--- Objects/obmalloc.o ---
In file included from Objects/mimalloc/prim/prim.c:22,
                 from Objects/mimalloc/static.c:37,
                 from Objects/obmalloc.c:22:
Objects/mimalloc/prim/unix/prim.c:76:12: warning: 'mi_prim_access' defined but not used [-Wunused-function]
   76 | static int mi_prim_access(const char *fpath, int mode) {
      |            ^~~~~~~~~~~~~~
Objects/mimalloc/prim/unix/prim.c:73:12: warning: 'mi_prim_close' defined but not used [-Wunused-function]
   73 | static int mi_prim_close(int fd) {
      |            ^~~~~~~~~~~~~
Objects/mimalloc/prim/unix/prim.c:70:16: warning: 'mi_prim_read' defined but not used [-Wunused-function]
   70 | static ssize_t mi_prim_read(int fd, void* buf, size_t bufsize) {
      |                ^~~~~~~~~~~~
Objects/mimalloc/prim/unix/prim.c:67:12: warning: 'mi_prim_open' defined but not used [-Wunused-function]
   67 | static int mi_prim_open(const char* fpath, int open_flags) {
      |            ^~~~~~~~~~~~

OS: NetBSD 10.0 amd64

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

@furkanonder furkanonder added build The build process and cross-build 3.13 bugs and security fixes 3.14 bugs and security fixes labels Sep 8, 2024
furkanonder added a commit to furkanonder/cpython that referenced this issue Sep 8, 2024
@colesbury colesbury added needs backport to 3.13 bugs and security fixes and removed needs backport to 3.13 bugs and security fixes labels Sep 9, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 9, 2024
Yhg1s pushed a commit that referenced this issue Sep 30, 2024
…H-123827) (#123875)

gh-123826: Fix unused function warnings in mimalloc on NetBSD (GH-123827)
(cherry picked from commit 4a6b1f1)

Co-authored-by: Furkan Onder <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes 3.14 bugs and security fixes build The build process and cross-build OS-netbsd
Projects
None yet
Development

No branches or pull requests

2 participants