This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit] [PATCH] Allow 64-bit enum values


On Thu, 19 Apr 2012 18:38:07 +0200 (CEST), Ulrich wrote:
> This causes a build failure for me due to:
> py-type.c: In function 'convert_field':
> py-type.c:186: warning: passing argument 2 of
> 'PyObject_SetAttrString' discards qualifiers from pointer target type
> 
> /usr/include/python2.4/object.h has
>    PyAPI_FUNC(int) PyObject_SetAttrString(PyObject *, char *,
> PyObject *);
> 
> Maybe this depends on the Python version?

Yes it does. Python 2.7 defines it as:

PyAPI_FUNC(int) PyObject_SetAttrString(PyObject *, const char *,
PyObject *);

I think you should be able to patch that header safely. I can't see a
reason to modify an attribute string and I'm pretty sure that it does
not.

--
Siddhesh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]