dirs: use PyVarObject_HEAD_INIT
authorGregory Szorc <gregory.szorc@gmail.com>
Thu, 13 Oct 2016 13:14:14 +0200
changeset 30167 1e5ff5ae1d2b
parent 30166 102e6ef5bb3a
child 30168 1a327889c13c
dirs: use PyVarObject_HEAD_INIT This makes a compiler warning go away on Python 3.
mercurial/dirs.c
--- a/mercurial/dirs.c	Thu Oct 13 09:27:37 2016 +0100
+++ b/mercurial/dirs.c	Thu Oct 13 13:14:14 2016 +0200
@@ -291,7 +291,7 @@
 	{NULL} /* Sentinel */
 };
 
-static PyTypeObject dirsType = { PyObject_HEAD_INIT(NULL) };
+static PyTypeObject dirsType = { PyVarObject_HEAD_INIT(NULL, 0) };
 
 void dirs_module_init(PyObject *mod)
 {