]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-133256: Add _Py_NONSTRING macro (#133257)
authorVictor Stinner <vstinner@python.org>
Thu, 1 May 2025 15:55:49 +0000 (17:55 +0200)
committerGitHub <noreply@github.com>
Thu, 1 May 2025 15:55:49 +0000 (17:55 +0200)
commite26bafd107aa86a4bdd6051848640f36a56d0efb
tree17e6e675a57684bcb6d74e91e55afd2d7f5f5a44
parentad2f0884b16e6af4087ba078d2255d4c81ae8e96
gh-133256: Add _Py_NONSTRING macro (#133257)

Fix GCC 15 compiler warnings such as:

    Modules/fcntlmodule.c:27:36: warning: initializer-string for
    array of 'char' truncates NUL terminator but destination lacks
    'nonstring' attribute (9 chars into 8 available)
    [-Wunterminated-string-initialization]
    static const char guard[GUARDSZ] = "\x00\xfa\x69\xc4\x67\xa3\x6c\x58";
Include/internal/pycore_debug_offsets.h
Include/pyport.h
Modules/fcntlmodule.c