This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH c++ 08/12] arm-linux-nat.c: Add cast
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Tue, 03 Nov 2015 16:16:25 +0000
- Subject: Re: [PATCH c++ 08/12] arm-linux-nat.c: Add cast
- Authentication-results: sourceware.org; auth=none
- References: <1446560804-18858-1-git-send-email-simon dot marchi at ericsson dot com> <1446560804-18858-8-git-send-email-simon dot marchi at ericsson dot com>
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