summaryrefslogtreecommitdiffstats
path: root/chardev/char-socket.c
diff options
context:
space:
mode:
authorFelipe Franciosi2017-03-02 19:25:50 +0100
committerPaolo Bonzini2017-05-05 12:10:00 +0200
commiteae0f543341b311038fa2d40350688c646880082 (patch)
tree99724022f6546f8971b9bfb943b775c18a347e10 /chardev/char-socket.c
parentget_maintainer: add subsystem to reviewer output (diff)
downloadqemu-eae0f543341b311038fa2d40350688c646880082.tar.gz
qemu-eae0f543341b311038fa2d40350688c646880082.tar.xz
qemu-eae0f543341b311038fa2d40350688c646880082.zip
libvhost-user: replace vasprintf() to fix build
On gcc 3.4 and newer, simply using (void) in front of WUR functions is not sufficient to ignore the return value. That prevents a build when handling warnings as errors. libvhost-user had a usage of (void)vasprintf() which triggered such a condition. This fixes it by replacing this call with g_strdup_vprintf() which aborts on OOM. Signed-off-by: Felipe Franciosi <felipe@nutanix.com> Message-Id: <1488479153-21203-2-git-send-email-felipe@nutanix.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'chardev/char-socket.c')
0 files changed, 0 insertions, 0 deletions