mirror of https://gitee.com/openkylin/libvirt.git
logging: use G_GNUC_UNUSED
Use G_GNUC_UNUSED from GLib instead of ATTRIBUTE_UNUSED. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
da24875847
commit
227d405d1d
|
@ -422,8 +422,8 @@ virLogDaemonUnixSocketPaths(bool privileged,
|
|||
|
||||
|
||||
static void
|
||||
virLogDaemonErrorHandler(void *opaque ATTRIBUTE_UNUSED,
|
||||
virErrorPtr err ATTRIBUTE_UNUSED)
|
||||
virLogDaemonErrorHandler(void *opaque G_GNUC_UNUSED,
|
||||
virErrorPtr err G_GNUC_UNUSED)
|
||||
{
|
||||
/* Don't do anything, since logging infrastructure already
|
||||
* took care of reporting the error */
|
||||
|
@ -487,16 +487,16 @@ virLogDaemonVersion(const char *argv0)
|
|||
|
||||
static void
|
||||
virLogDaemonShutdownHandler(virNetDaemonPtr dmn,
|
||||
siginfo_t *sig ATTRIBUTE_UNUSED,
|
||||
void *opaque ATTRIBUTE_UNUSED)
|
||||
siginfo_t *sig G_GNUC_UNUSED,
|
||||
void *opaque G_GNUC_UNUSED)
|
||||
{
|
||||
virNetDaemonQuit(dmn);
|
||||
}
|
||||
|
||||
static void
|
||||
virLogDaemonExecRestartHandler(virNetDaemonPtr dmn,
|
||||
siginfo_t *sig ATTRIBUTE_UNUSED,
|
||||
void *opaque ATTRIBUTE_UNUSED)
|
||||
siginfo_t *sig G_GNUC_UNUSED,
|
||||
void *opaque G_GNUC_UNUSED)
|
||||
{
|
||||
execRestart = true;
|
||||
virNetDaemonQuit(dmn);
|
||||
|
@ -593,7 +593,7 @@ virLogDaemonClientNew(virNetServerClientPtr client,
|
|||
|
||||
static void *
|
||||
virLogDaemonClientNewPostExecRestart(virNetServerClientPtr client,
|
||||
virJSONValuePtr object ATTRIBUTE_UNUSED,
|
||||
virJSONValuePtr object G_GNUC_UNUSED,
|
||||
void *opaque)
|
||||
{
|
||||
virLogDaemonClientPtr priv = virLogDaemonClientNew(client, opaque);
|
||||
|
@ -606,8 +606,8 @@ virLogDaemonClientNewPostExecRestart(virNetServerClientPtr client,
|
|||
|
||||
|
||||
static virJSONValuePtr
|
||||
virLogDaemonClientPreExecRestart(virNetServerClientPtr client ATTRIBUTE_UNUSED,
|
||||
void *opaque ATTRIBUTE_UNUSED)
|
||||
virLogDaemonClientPreExecRestart(virNetServerClientPtr client G_GNUC_UNUSED,
|
||||
void *opaque G_GNUC_UNUSED)
|
||||
{
|
||||
virJSONValuePtr object = virJSONValueNewObject();
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ virLogDaemonConfigFilePath(bool privileged, char **configfile)
|
|||
|
||||
|
||||
virLogDaemonConfigPtr
|
||||
virLogDaemonConfigNew(bool privileged ATTRIBUTE_UNUSED)
|
||||
virLogDaemonConfigNew(bool privileged G_GNUC_UNUSED)
|
||||
{
|
||||
virLogDaemonConfigPtr data;
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@ VIR_LOG_INIT("logging.log_daemon_dispatch");
|
|||
#include "log_daemon_dispatch_stubs.h"
|
||||
|
||||
static int
|
||||
virLogManagerProtocolDispatchDomainOpenLogFile(virNetServerPtr server ATTRIBUTE_UNUSED,
|
||||
virNetServerClientPtr client ATTRIBUTE_UNUSED,
|
||||
virLogManagerProtocolDispatchDomainOpenLogFile(virNetServerPtr server G_GNUC_UNUSED,
|
||||
virNetServerClientPtr client G_GNUC_UNUSED,
|
||||
virNetMessagePtr msg,
|
||||
virNetMessageErrorPtr rerr,
|
||||
virLogManagerProtocolDomainOpenLogFileArgs *args,
|
||||
|
@ -76,9 +76,9 @@ virLogManagerProtocolDispatchDomainOpenLogFile(virNetServerPtr server ATTRIBUTE_
|
|||
|
||||
|
||||
static int
|
||||
virLogManagerProtocolDispatchDomainGetLogFilePosition(virNetServerPtr server ATTRIBUTE_UNUSED,
|
||||
virNetServerClientPtr client ATTRIBUTE_UNUSED,
|
||||
virNetMessagePtr msg ATTRIBUTE_UNUSED,
|
||||
virLogManagerProtocolDispatchDomainGetLogFilePosition(virNetServerPtr server G_GNUC_UNUSED,
|
||||
virNetServerClientPtr client G_GNUC_UNUSED,
|
||||
virNetMessagePtr msg G_GNUC_UNUSED,
|
||||
virNetMessageErrorPtr rerr,
|
||||
virLogManagerProtocolDomainGetLogFilePositionArgs *args,
|
||||
virLogManagerProtocolDomainGetLogFilePositionRet *ret)
|
||||
|
@ -106,9 +106,9 @@ virLogManagerProtocolDispatchDomainGetLogFilePosition(virNetServerPtr server ATT
|
|||
|
||||
|
||||
static int
|
||||
virLogManagerProtocolDispatchDomainReadLogFile(virNetServerPtr server ATTRIBUTE_UNUSED,
|
||||
virNetServerClientPtr client ATTRIBUTE_UNUSED,
|
||||
virNetMessagePtr msg ATTRIBUTE_UNUSED,
|
||||
virLogManagerProtocolDispatchDomainReadLogFile(virNetServerPtr server G_GNUC_UNUSED,
|
||||
virNetServerClientPtr client G_GNUC_UNUSED,
|
||||
virNetMessagePtr msg G_GNUC_UNUSED,
|
||||
virNetMessageErrorPtr rerr,
|
||||
virLogManagerProtocolDomainReadLogFileArgs *args,
|
||||
virLogManagerProtocolDomainReadLogFileRet *ret)
|
||||
|
@ -144,9 +144,9 @@ virLogManagerProtocolDispatchDomainReadLogFile(virNetServerPtr server ATTRIBUTE_
|
|||
|
||||
|
||||
static int
|
||||
virLogManagerProtocolDispatchDomainAppendLogFile(virNetServerPtr server ATTRIBUTE_UNUSED,
|
||||
virNetServerClientPtr client ATTRIBUTE_UNUSED,
|
||||
virNetMessagePtr msg ATTRIBUTE_UNUSED,
|
||||
virLogManagerProtocolDispatchDomainAppendLogFile(virNetServerPtr server G_GNUC_UNUSED,
|
||||
virNetServerClientPtr client G_GNUC_UNUSED,
|
||||
virNetMessagePtr msg G_GNUC_UNUSED,
|
||||
virNetMessageErrorPtr rerr,
|
||||
virLogManagerProtocolDomainAppendLogFileArgs *args,
|
||||
virLogManagerProtocolDomainAppendLogFileRet *ret)
|
||||
|
|
|
@ -566,9 +566,9 @@ virLogHandlerDomainReadLogFile(virLogHandlerPtr handler,
|
|||
|
||||
int
|
||||
virLogHandlerDomainAppendLogFile(virLogHandlerPtr handler,
|
||||
const char *driver ATTRIBUTE_UNUSED,
|
||||
const unsigned char *domuuid ATTRIBUTE_UNUSED,
|
||||
const char *domname ATTRIBUTE_UNUSED,
|
||||
const char *driver G_GNUC_UNUSED,
|
||||
const unsigned char *domuuid G_GNUC_UNUSED,
|
||||
const char *domname G_GNUC_UNUSED,
|
||||
const char *path,
|
||||
const char *message,
|
||||
unsigned int flags)
|
||||
|
|
Loading…
Reference in New Issue