This code compiles only on Linux. Therefore the condition we check is always true. Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> --- src/lxc/lxc_driver.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 5cc392b0e..4d24d2870 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -2847,7 +2847,6 @@ lxcDomainGetBlkioParameters(virDomainPtr dom, } -#ifdef __linux__ static int lxcDomainInterfaceStats(virDomainPtr dom, const char *path, @@ -2895,16 +2894,7 @@ lxcDomainInterfaceStats(virDomainPtr dom, virDomainObjEndAPI(&vm); return ret; } -#else -static int -lxcDomainInterfaceStats(virDomainPtr dom, - const char *path ATTRIBUTE_UNUSED, - virDomainInterfaceStatsPtr stats ATTRIBUTE_UNUSED) -{ - virReportUnsupportedError(); - return -1; -} -#endif + static int lxcDomainGetAutostart(virDomainPtr dom, int *autostart) -- 2.13.5 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list