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.
This commit is contained in:
Roman Bogorodskiy 2017-03-23 07:45:29 +04:00
parent 0b785be4ca
commit 8095828480

View 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"));