summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-07 10:33:28 -0700
committerBenjamin Peterson <benjamin@python.org>2016-09-07 10:33:28 -0700
commit995e6149663e67c24295e7ead5e53424d52a43a3 (patch)
tree16adcb080b0d7c026b4a936593e6bf0bb492ea25 /Include
parent8ae876a1a48148ef9beb090f87351c27580c2454 (diff)
downloadcpython-995e6149663e67c24295e7ead5e53424d52a43a3.tar.gz
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 85bfce3690..9ad6bdfb33 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)