Re: [PATCH] tests: virpcimock: Always declare __open_2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
I guess you could have simply pushed this as a build breaker, anyway:

Reviewed-by: Erik Skultety <eskultet@xxxxxxxxxx>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux