提交 6727ca6b 编写于 作者: J Ján Tomko

remote: use G_GNUC_UNUSED

Use G_GNUC_UNUSED from GLib instead of ATTRIBUTE_UNUSED.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 ada7596b
......@@ -273,8 +273,8 @@ daemonUnixSocketPaths(struct daemonConfig *config,
}
static void daemonErrorHandler(void *opaque ATTRIBUTE_UNUSED,
virErrorPtr err ATTRIBUTE_UNUSED)
static void daemonErrorHandler(void *opaque G_GNUC_UNUSED,
virErrorPtr err G_GNUC_UNUSED)
{
/* Don't do anything, since logging infrastructure already
* took care of reporting the error */
......@@ -698,13 +698,13 @@ daemonVersion(const char *argv0)
static void daemonShutdownHandler(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 daemonReloadHandlerThread(void *opague ATTRIBUTE_UNUSED)
static void daemonReloadHandlerThread(void *opague G_GNUC_UNUSED)
{
VIR_INFO("Reloading configuration on SIGHUP");
virHookCall(VIR_HOOK_DRIVER_DAEMON, "-",
......@@ -713,9 +713,9 @@ static void daemonReloadHandlerThread(void *opague ATTRIBUTE_UNUSED)
VIR_WARN("Error while reloading drivers");
}
static void daemonReloadHandler(virNetDaemonPtr dmn ATTRIBUTE_UNUSED,
siginfo_t *sig ATTRIBUTE_UNUSED,
void *opaque ATTRIBUTE_UNUSED)
static void daemonReloadHandler(virNetDaemonPtr dmn G_GNUC_UNUSED,
siginfo_t *sig G_GNUC_UNUSED,
void *opaque G_GNUC_UNUSED)
{
virThread thr;
......@@ -787,7 +787,7 @@ static void daemonStop(virNetDaemonPtr dmn)
static DBusHandlerResult
handleSessionMessageFunc(DBusConnection *connection ATTRIBUTE_UNUSED,
handleSessionMessageFunc(DBusConnection *connection G_GNUC_UNUSED,
DBusMessage *message,
void *opaque)
{
......@@ -805,7 +805,7 @@ handleSessionMessageFunc(DBusConnection *connection ATTRIBUTE_UNUSED,
static DBusHandlerResult
handleSystemMessageFunc(DBusConnection *connection ATTRIBUTE_UNUSED,
handleSystemMessageFunc(DBusConnection *connection G_GNUC_UNUSED,
DBusMessage *message,
void *opaque)
{
......
......@@ -100,7 +100,7 @@ daemonConfigFilePath(bool privileged, char **configfile)
}
struct daemonConfig*
daemonConfigNew(bool privileged ATTRIBUTE_UNUSED)
daemonConfigNew(bool privileged G_GNUC_UNUSED)
{
struct daemonConfig *data;
......
此差异已折叠。
......@@ -284,7 +284,7 @@ daemonStreamEvent(virStreamPtr st, int events, void *opaque)
* -1 on fatal client error
*/
static int
daemonStreamFilter(virNetServerClientPtr client ATTRIBUTE_UNUSED,
daemonStreamFilter(virNetServerClientPtr client G_GNUC_UNUSED,
virNetMessagePtr msg,
void *opaque)
{
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册