[PATCH c++ 08/12] arm-linux-nat.c: Add cast

Pedro Alves palves@redhat.com
Tue Nov 3 16:16:00 GMT 2015


On 11/03/2015 02:26 PM, Simon Marchi wrote:
> From: Simon Marchi <simon.marchi@polymtl.ca>
> 
> Fixes:
> 
> /home/simark/src/binutils-gdb/gdb/arm-linux-nat.c: In function ‘const target_desc* arm_linux_read_description(target_ops*)’:
> /home/simark/src/binutils-gdb/gdb/../include/libiberty.h:711:38: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
>  # define alloca(x) __builtin_alloca(x)
>                                       ^
> /home/simark/src/binutils-gdb/gdb/arm-linux-nat.c:578:13: note: in expansion of macro ‘alloca’
>        buf = alloca (VFP_REGS_SIZE);
>              ^
> 
> gdb/ChangeLog:
> 
> 	* arm-linux-nat.c (arm_linux_read_description): Add cast.

OK.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list