From 419f67c6597de5b0ba5b5cd46ff8098086891af6 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 1 Oct 2019 12:19:47 +0200 Subject: [PATCH] bpo-38321: Fix compiler warning in _randommodule.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the GCC warning: "initialization discards ‘const’ qualifier from pointer target type". --- Modules/_randommodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 1ea2bf28abccad..1f4bf74fc7a1e2 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -543,7 +543,7 @@ PyDoc_STRVAR(random_doc, "Random() -> create a random number generator with its own internal state."); static PyType_Slot Random_Type_slots[] = { - {Py_tp_doc, random_doc}, + {Py_tp_doc, (void *)random_doc}, {Py_tp_methods, random_methods}, {Py_tp_new, random_new}, {Py_tp_free, PyObject_Free},