mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user