]> xenbits.xensource.com Git - libvirt.git/commit
tests: Fix build with clang
authorJiri Denemark <jdenemar@redhat.com>
Thu, 5 Oct 2017 07:06:03 +0000 (09:06 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 5 Oct 2017 07:09:50 +0000 (09:09 +0200)
commit2925f9395eedd75f1084d0f224f3d96b9c6eac43
treee52e8180d155232e882579bf4b0f74bc74f09808
parent000e95045595ab5fd974e08dcc71b70a491965ed
tests: Fix build with clang

clang doesn't like mode_t type as an argument to va_arg():

error: second argument to 'va_arg' is of promotable type 'mode_t' (aka
'unsigned short'); this va_arg has undefined behavior because arguments
will be promoted to 'int'

    mode = va_arg(ap, mode_t);
                      ^~~~~~

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tests/virfilewrapper.c
tests/virusbmock.c