]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-133256: Add _Py_NONSTRING macro (#133257) (#135135)
authorVictor Stinner <vstinner@python.org>
Wed, 4 Jun 2025 15:10:35 +0000 (17:10 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Jun 2025 15:10:35 +0000 (17:10 +0200)
commit659631f7697079e31e2a8c31fd686b24c85c9b2d
treea0854e18b4ab9b8061e10bd7d8c793ff2f3b2186
parentae2e7958f24af9a8f8cde115dff835517be14a90
[3.13] gh-133256: Add _Py_NONSTRING macro (#133257) (#135135)

gh-133256: Add _Py_NONSTRING macro (#133257)

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 e26bafd107aa86a4bdd6051848640f36a56d0efb)
Include/internal/pycore_runtime.h
Include/pyport.h