From: Tom Tromey Date: Wed, 5 Jun 2013 17:32:51 +0000 (+0000) Subject: * python/py-utils.c (gdb_pymodule_addobject): Cast away const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=351a6f0219ca55bda51307e064b18aaaa79b5521;p=binutils-gdb.git * python/py-utils.c (gdb_pymodule_addobject): Cast away const. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6b56ef5841e..61a867d0c22 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2013-06-05 Tom Tromey + + * python/py-utils.c (gdb_pymodule_addobject): Cast away const. + 2013-06-04 Sergio Durigan Junior Pedro Alves diff --git a/gdb/python/py-utils.c b/gdb/python/py-utils.c index 7c7c5caee9b..bbbdef4ad5b 100644 --- a/gdb/python/py-utils.c +++ b/gdb/python/py-utils.c @@ -436,7 +436,8 @@ gdb_pymodule_addobject (PyObject *module, const char *name, PyObject *object) int result; Py_INCREF (object); - result = PyModule_AddObject (module, name, object); + /* Python 2.4 did not have a 'const' here. */ + result = PyModule_AddObject (module, (char *) name, object); if (result < 0) Py_DECREF (object); return result;