]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: fix build on non-Linux
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 23 Mar 2017 03:45:29 +0000 (07:45 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 23 Mar 2017 03:45:29 +0000 (07:45 +0400)
Decorate unused arguments of the virNetDevGetMaster() stub
with ATTRIBUTE_UNUSED to fix build on systems where this
stub is used.

src/util/virnetdev.c

index 6805d324da99a0726fdd39dc6389de0fc42404e9..455239ad9b3af738b0745932a18b6096df84354a 100644 (file)
@@ -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"));