From: Benjamin Peterson Date: Wed, 7 Sep 2016 17:33:28 +0000 (-0700) Subject: make _Py_static_string_init use a designated initializer X-Git-Tag: v3.6.0b1~343 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5223f08e78efcfadb7fe2288fd48bb985d6ca7a7;p=thirdparty%2FPython%2Fcpython.git make _Py_static_string_init use a designated initializer --- diff --git a/Include/object.h b/Include/object.h index 85bfce36908a..9ad6bdfb33ca 100644 --- a/Include/object.h +++ b/Include/object.h @@ -144,7 +144,7 @@ typedef struct _Py_Identifier { PyObject *object; } _Py_Identifier; -#define _Py_static_string_init(value) { 0, value, 0 } +#define _Py_static_string_init(value) { .next = NULL, .string = value, .object = NULL } #define _Py_static_string(varname, value) static _Py_Identifier varname = _Py_static_string_init(value) #define _Py_IDENTIFIER(varname) _Py_static_string(PyId_##varname, #varname)