summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-07 17:33:28 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-07 17:33:28 (GMT)
commit5223f08e78efcfadb7fe2288fd48bb985d6ca7a7 (patch)
treeef5d1b4f01c620fa7658c7f641f54596747e9983 /Include
parentfe8f4c9e87699acfd740dfc38ae5320691598250 (diff)
downloadcpython-5223f08e78efcfadb7fe2288fd48bb985d6ca7a7.zip
cpython-5223f08e78efcfadb7fe2288fd48bb985d6ca7a7.tar.gz
cpython-5223f08e78efcfadb7fe2288fd48bb985d6ca7a7.tar.bz2
make _Py_static_string_init use a designated initializer
Diffstat (limited to 'Include')
-rw-r--r--Include/object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/object.h b/Include/object.h
index 85bfce3..9ad6bdf 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)