Skip to content
Commit eae0f543 authored by Felipe Franciosi's avatar Felipe Franciosi Committed by Paolo Bonzini
Browse files

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: default avatarFelipe Franciosi <felipe@nutanix.com>
Message-Id: <1488479153-21203-2-git-send-email-felipe@nutanix.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
parent 622e42a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment