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: [PATCH] Wrap PyObject_Get/HasAttrString in a function with second arg having const qualifier.


On 06/09/2014 02:42 PM, Siva Chandra wrote:
> +/* The second argument to PyObject_GetAttrString was missing the 'const'
> +   qualifier.  Hence, we wrap it in a function to avoid errors when compiled
> +   with -Werror against Python 2.4.  */

I'd suggest moving the "in Python 2.4" to the first sentence, like:

/* The second argument to PyObject_GetAttrString was missing the 'const'
   qualifier in Python 2.4.  Hence, we wrap it in a function to avoid errors
   when compiled with -Werror.  */

Otherwise looks great to me.

Thanks!

-- 
Pedro Alves


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