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 — Deprecation warning for ATOMIC_VAR_INIT in mimalloc · Issue #121487 · python/cpython

Deprecation warning for ATOMIC_VAR_INIT in mimalloc #121487

New issue
Copy link
New issue
Copy link
Closed
Closed
Deprecation warning for ATOMIC_VAR_INIT in mimalloc#121487
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@cdce8p
cdce8p
opened on Jul 8, 2024
Issue body actions

Bug report

Bug description:

ATOMIC_VAR_INIT is marked as deprecated in C17 and C++20.

/.../cpython/Include/internal/mimalloc/mimalloc/atomic.h:42:14: error: macro 'ATOMIC_VAR_INIT' has been marked as deprecated [-Werror,-Wdeprecated-pragma] (diff)
  #if !defined(ATOMIC_VAR_INIT) || (__STDC_VERSION__ >= 201710L) // c17, see issue #735
  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stdatomic.h:54:41: note: macro marked 'deprecated' here
  #pragma clang deprecated(ATOMIC_VAR_INIT)

This was fixed upstream but isn't included in the vendored copy.
microsoft/mimalloc@36ee5f9
microsoft/mimalloc@1325ee6
microsoft/mimalloc#735

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

macOS

Linked PRs

  • gh-121487: Fix deprecation warning for ATOMIC_VAR_INIT in mimalloc #121488
  • [3.13] gh-121487: Fix deprecation warning for ATOMIC_VAR_INIT in mimalloc (gh-121488) #121504

Activity

  1. cdce8p
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jul 8, 2024
  2. colesbury
    added a commit that references this issue on Jul 8, 2024

    gh-121487: Fix deprecation warning for ATOMIC_VAR_INIT in mimalloc (g…

    31873be
  3. miss-islington
    added a commit that references this issue on Jul 8, 2024

    pythongh-121487: Fix deprecation warning for ATOMIC_VAR_INIT in mimal…

    9985800
  4. colesbury
    added a commit that references this issue on Jul 8, 2024

    [3.13] gh-121487: Fix deprecation warning for ATOMIC_VAR_INIT in mima…

    eef5c64
  5. cdce8p
    closed this as completedon Jul 8, 2024
  6. estyxx
    added a commit that references this issue on Jul 17, 2024

    pythongh-121487: Fix deprecation warning for ATOMIC_VAR_INIT in mimal…

    f6cc2b0
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

    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      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.