mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-27 06:55:18 +00:00
build: avoid compiler warning
According to GCC, ATTRIBUTE_UNUSED means that an attribute _might_ be unused, not _must_ be unused. Therefore, it is easier to blindly mark a variable, than to try and do preprocessor limiting of when we know it is unused. * src/remote/remote_driver.c (remoteAuthenticate): Mark attribute as potentially unused. Reported by Gustovo Morozowski.
This commit is contained in:
parent
8138ec8693
commit
8f342c6f9a
@ -6475,16 +6475,9 @@ done:
|
|||||||
/*----------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------*/
|
||||||
|
|
||||||
static int
|
static int
|
||||||
remoteAuthenticate (virConnectPtr conn, struct private_data *priv, int in_open
|
remoteAuthenticate (virConnectPtr conn, struct private_data *priv,
|
||||||
#if !HAVE_SASL && !HAVE_POLKIT
|
int in_open ATTRIBUTE_UNUSED,
|
||||||
ATTRIBUTE_UNUSED
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
#endif
|
|
||||||
,
|
|
||||||
virConnectAuthPtr auth
|
|
||||||
#if !HAVE_SASL && !HAVE_POLKIT
|
|
||||||
ATTRIBUTE_UNUSED
|
|
||||||
#endif
|
|
||||||
,
|
|
||||||
const char *authtype)
|
const char *authtype)
|
||||||
{
|
{
|
||||||
struct remote_auth_list_ret ret;
|
struct remote_auth_list_ret ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user