From: Simon Marchi Date: Tue, 3 Nov 2015 18:33:14 +0000 (-0500) Subject: arm-linux-nat.c: Add cast X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f844cf0ec3887110375e9c1d4c48a68cb6a8b141;p=binutils-gdb.git arm-linux-nat.c: Add cast 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7de4153e4b4..8cb45b81a5b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-11-03 Simon Marchi + + * arm-linux-nat.c (arm_linux_read_description): Add cast. + 2015-11-03 Simon Marchi * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c index a63b181697c..63fdae13ca2 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c @@ -575,7 +575,7 @@ arm_linux_read_description (struct target_ops *ops) registers. Support was added in 2.6.30. */ pid = ptid_get_lwp (inferior_ptid); errno = 0; - buf = alloca (VFP_REGS_SIZE); + buf = (char *) alloca (VFP_REGS_SIZE); if (ptrace (PTRACE_GETVFPREGS, pid, 0, buf) < 0 && errno == EIO) result = NULL;