[libvirt] [PATCH] tests: virpcimock: Always declare __open_2
Erik Skultety
eskultet at redhat.com
Fri Aug 16 07:52:02 UTC 2019
On Fri, Aug 16, 2019 at 09:43:27AM +0200, Peter Krempa wrote:
> In some cases e.g. with clang on fedora 30 __open2 isn't even declared
> which results in the following build error:
>
> /home/pipo/libvirt/tests/virpcimock.c:939:1: error: no previous prototype for function
> '__open_2' [-Werror,-Wmissing-prototypes]
> __open_2(const char *path, int flags)
>
> Add a separate declaration to appease the compiler.
>
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
I guess you could have simply pushed this as a build breaker, anyway:
Reviewed-by: Erik Skultety <eskultet at redhat.com>
More information about the libvir-list
mailing list