From 89f6d8377b9a3a157db806a7b3fb30f3f8e353ca Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 19 Apr 2013 15:29:09 +0000 Subject: -Wpointer-sign: python/. This fixes -Wpointer-sign warnings in the python/ code in the manner that seems most appropriate to me. gdb/ 2013-04-19 Pedro Alves * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte * python/py-prettyprint.c (print_string_repr): Change type of 'output' local to char *. Add cast to gdb_byte * in LA_PRINT_STRING call. (print_children): Change type of 'output' local to char *. * python/py-value.c (valpy_string): Add cast to const char * in PyUnicode_Decode call. --- gdb/python/py-inferior.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/python/py-inferior.c') diff --git a/gdb/python/py-inferior.c b/gdb/python/py-inferior.c index 9c84904..4af7131 100644 --- a/gdb/python/py-inferior.c +++ b/gdb/python/py-inferior.c @@ -513,7 +513,7 @@ infpy_write_memory (PyObject *self, PyObject *args, PyObject *kw) error = 1; break; } - write_memory_with_notification (addr, buffer, length); + write_memory_with_notification (addr, (gdb_byte *) buffer, length); } #ifdef IS_PY3K PyBuffer_Release (&pybuf); -- cgit v1.1