From: Roman Bogorodskiy Date: Thu, 23 Mar 2017 03:45:29 +0000 (+0400) Subject: util: fix build on non-Linux X-Git-Tag: v3.2.0-rc1~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80958284800968bfaf153c10a7c9d49591aa8a87;p=thirdparty%2Flibvirt.git util: fix build on non-Linux Decorate unused arguments of the virNetDevGetMaster() stub with ATTRIBUTE_UNUSED to fix build on systems where this stub is used. --- diff --git a/src/util/virnetdev.c b/src/util/virnetdev.c index 6805d324da..455239ad9b 100644 --- a/src/util/virnetdev.c +++ b/src/util/virnetdev.c @@ -1017,7 +1017,8 @@ virNetDevGetMaster(const char *ifname, char **master) int -virNetDevGetMaster(const char *ifname, char **master) +virNetDevGetMaster(const char *ifname ATTRIBUTE_UNUSED, + char **master ATTRIBUTE_UNUSED) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Unable to get device master from netlink on this platform"));