Skip to content

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 4, 2025

Fix GCC 15 compiler warnings such as:

In file included from Python/pylifecycle.c:26:
Include/internal/pycore_runtime.h:47:26: warning:
initializer-string for array of 'char' truncates NUL terminator
but destination lacks 'nonstring' attribute (9 chars into 8
available) [-Wunterminated-string-initialization]
   47 | #define _Py_Debug_Cookie "xdebugpy"
      |                          ^~~~~~~~~~

(cherry picked from commit e26bafd)

Fix GCC 15 compiler warnings such as:

    In file included from Python/pylifecycle.c:26:
    Include/internal/pycore_runtime.h:47:26: warning:
    initializer-string for array of 'char' truncates NUL terminator
    but destination lacks 'nonstring' attribute (9 chars into 8
    available) [-Wunterminated-string-initialization]
       47 | #define _Py_Debug_Cookie "xdebugpy"
          |                          ^~~~~~~~~~

(cherry picked from commit e26bafd)
@vstinner vstinner changed the title gh-133256: Add _Py_NONSTRING macro (#133257) [3.13) gh-133256: Add _Py_NONSTRING macro (#133257) Jun 4, 2025
@vstinner vstinner changed the title [3.13) gh-133256: Add _Py_NONSTRING macro (#133257) [3.13] gh-133256: Add _Py_NONSTRING macro (#133257) Jun 4, 2025
@vstinner vstinner merged commit 659631f into python:3.13 Jun 4, 2025
38 checks passed
@vstinner vstinner deleted the nonstring13 branch June 4, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant