GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CYGWIN: GCC prints "defined but not used" warnings on mimalloc · Issue #146594 · python/cpython

CYGWIN: GCC prints "defined but not used" warnings on mimalloc #146594

New issue
Copy link
New issue
Copy link
Open
Open
CYGWIN: GCC prints "defined but not used" warnings on mimalloc#146594
Copy link
Labels
OS-unsupportedbuildThe build process and cross-buildThe build process and cross-builddependenciesPull requests that update a dependency filePull requests that update a dependency fileinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)triagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@carlo-bramini
carlo-bramini
opened on Mar 29, 2026
Issue body actions

Bug report

Bug description:

Compiling under CYGWIN prints these warning messages:

In file included from ../cpython/Objects/mimalloc/prim/prim.c:22,
                 from ../cpython/Objects/mimalloc/static.c:37,
                 from ../cpython/Objects/obmalloc.c:23:
../cpython/Objects/mimalloc/prim/unix/prim.c:91:12: warning: ‘mi_prim_access’ defined but not used [-Wunused-function]
   91 | static int mi_prim_access(const char *fpath, int mode) {
      |            ^~~~~~~~~~~~~~
../cpython/Objects/mimalloc/prim/unix/prim.c:88:12: warning: ‘mi_prim_close’ defined but not used [-Wunused-function]
   88 | static int mi_prim_close(int fd) {
      |            ^~~~~~~~~~~~~
../cpython/Objects/mimalloc/prim/unix/prim.c:85:16: warning: ‘mi_prim_read’ defined but not used [-Wunused-function]
   85 | static ssize_t mi_prim_read(int fd, void* buf, size_t bufsize) {
      |                ^~~~~~~~~~~~
../cpython/Objects/mimalloc/prim/unix/prim.c:82:12: warning: ‘mi_prim_open’ defined but not used [-Wunused-function]
   82 | static int mi_prim_open(const char* fpath, int open_flags) {
      |            ^~~~~~~~~~~~

Looking into the code of Objects/mimalloc/prim/unix/prim.c, there is already a conditional block to avoid the generation of such warnings.
The solution for this issue is to simply add CYGWIN to that list of platforms.
So, I'm posting this issue according to the suggestion received into #146572 for tracking this change.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

  • gh-146594: Remove unused function warnings during mimalloc build on CYGWIN #146599

Activity

  1. carlo-bramini
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Mar 29, 2026
  2. picnixz
    added
    OS-windows
    buildThe build process and cross-buildThe build process and cross-build
    dependenciesPull requests that update a dependency filePull requests that update a dependency file
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    triagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.
    on Mar 29, 2026
  3. carlo-bramini
    added a commit that references this issue on Mar 29, 2026

    Remove unused function warnings during mimalloc build on CYGWIN

    2fd5ad0
  4. vstinner
    added a parent issue on May 15, 2026
    • Enhance Cygwin support #149879
  5. encukou
    added
    OS-unsupported
    and removed
    OS-windows
    on Jun 5, 2026
  6. github-project-automation
    added this to Unsupported platformson Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-unsupportedbuildThe build process and cross-buildThe build process and cross-builddependenciesPull requests that update a dependency filePull requests that update a dependency fileinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)triagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    • Unsupported platforms
      Status
      No status
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.