aboutsummaryrefslogtreecommitdiff
path: root/sim/pru/sim-main.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-09 00:54:57 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-09 08:40:07 -0500
commitb5a4a01af4ef4f5edefacf45dc173f559d09c4b5 (patch)
tree80103317f1356df7788c3f7fda5bc25cca5ba675 /sim/pru/sim-main.h
parentbe2c78856d6ffe491ae41a7dda58b8553e71dd0f (diff)
downloadfsf-binutils-gdb-b5a4a01af4ef4f5edefacf45dc173f559d09c4b5.zip
fsf-binutils-gdb-b5a4a01af4ef4f5edefacf45dc173f559d09c4b5.tar.gz
fsf-binutils-gdb-b5a4a01af4ef4f5edefacf45dc173f559d09c4b5.tar.bz2
sim: hw: rework code to avoid gcc warnings
Newer gcc thinks we might return a pointer to a stack buffer, but we don't -- we strdup it before returning. Rework the code to just malloc the buffer from the start and avoid the stack+strdup.
Diffstat (limited to 'sim/pru/sim-main.h')
0 files changed, 0 insertions, 0 deletions