]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/common/ChangeLog
sim: hw: rework code to avoid gcc warnings
authorMike Frysinger <vapier@gentoo.org>
Sat, 9 Jan 2021 05:54:57 +0000 (00:54 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 9 Jan 2021 13:40:07 +0000 (08:40 -0500)
commitb5a4a01af4ef4f5edefacf45dc173f559d09c4b5
tree80103317f1356df7788c3f7fda5bc25cca5ba675
parentbe2c78856d6ffe491ae41a7dda58b8553e71dd0f
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.
sim/common/ChangeLog
sim/common/hw-base.c