mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
command: Fix ATTRIBUTE_UNUSED on virSetCapabilities
If we are building not on a WIN32 architecture and without HAVE_CAPNG virSetCapabilities has unused argument and virClearCapabilities is unused as well.
This commit is contained in:
parent
50e9b38930
commit
7b0a740542
@ -169,8 +169,9 @@ virCommandFDSet(int fd,
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
# if HAVE_CAPNG
|
||||
static int virClearCapabilities(void) ATTRIBUTE_UNUSED;
|
||||
|
||||
# if HAVE_CAPNG
|
||||
static int virClearCapabilities(void)
|
||||
{
|
||||
int ret;
|
||||
@ -220,7 +221,8 @@ static int virClearCapabilities(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int virSetCapabilities(unsigned long long capabilities)
|
||||
static int
|
||||
virSetCapabilities(unsigned long long capabilities ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user