diff options
| author | Victor Stinner <vstinner@redhat.com> | 2019-10-01 12:45:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-01 12:45:52 +0200 |
| commit | 2f90261280e36a179831d72ce794115be31c88bb (patch) | |
| tree | 390ba1d19c555e9c1cff23dec7c8593f92032d0b | |
| parent | 982bfa4da07b2e5749a0f4e68f99e972bcc3a549 (diff) | |
| download | cpython-git-2f90261280e36a179831d72ce794115be31c88bb.tar.gz | |
bpo-38321: Fix compiler warning in _randommodule.c (GH-16512)
Fix the GCC warning: "initialization discards ‘const’ qualifier from
pointer target type".
| -rw-r--r-- | Modules/_randommodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 1ea2bf28ab..1f4bf74fc7 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}, |
