mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00: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:
parent
0b785be4ca
commit
8095828480
@ -1017,7 +1017,8 @@ virNetDevGetMaster(const char *ifname, char **master)
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
virNetDevGetMaster(const char *ifname, char **master)
|
virNetDevGetMaster(const char *ifname ATTRIBUTE_UNUSED,
|
||||||
|
char **master ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
_("Unable to get device master from netlink on this platform"));
|
_("Unable to get device master from netlink on this platform"));
|
||||||
|
Loading…
Reference in New Issue
Block a user