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] Avoid invalid pointer to pointer conversions.


On Mon, 11 Mar 2013 13:23:41 +0100, Pedro Alves wrote:
> gdb/
> 2013-03-11  Pedro Alves  <palves@redhat.com>
> 
> 	* charset.c (convert_between_encodings): Don't cast between
> 	different pointer to pointer types.  Instead, make the 'inp' local
> 	be of the type iconv expects.
> 	(wchar_iterate): Don't cast between different pointer to pointer
> 	types.  Instead, use new pointer local of the type iconv expects.
> 	* target.c (target_read_stralloc, target_fileio_read_stralloc):
> 	Add new local of type char pointer, and use it to get a
> 	char/string view of the byte buffer, instead of casting between
> 	pointer to pointer types.

Confiming the GCC warnings on CentOS release 5.9 x86_64 and therefore the
"Build regression on RHEL-5" mails have been fixed.


Thanks,
Jan


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