1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix warnings in statusnotifier

This commit is contained in:
tux3 2015-02-22 01:21:20 +01:00
parent 55d78698c2
commit d01737572a
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -842,7 +842,7 @@ dbus_notify (StatusNotifier *sn, guint prop)
{ {
case PROP_STATUS: case PROP_STATUS:
{ {
const gchar const *s_status[] = { const gchar *s_status[] = {
"Passive", "Passive",
"Active", "Active",
"NeedsAttention" "NeedsAttention"
@ -1449,6 +1449,10 @@ method_call (GDBusConnection *conn,
GDBusMethodInvocation *invocation, GDBusMethodInvocation *invocation,
gpointer data) gpointer data)
{ {
(void)conn;
(void)sender;
(void)object;
(void)interface;
StatusNotifier *sn = (StatusNotifier *) data; StatusNotifier *sn = (StatusNotifier *) data;
guint signal; guint signal;
gint x, y; gint x, y;
@ -1543,6 +1547,11 @@ get_prop (GDBusConnection *conn,
GError **error, GError **error,
gpointer data) gpointer data)
{ {
(void)conn;
(void)sender;
(void)object;
(void)interface;
(void)error;
StatusNotifier *sn = (StatusNotifier *) data; StatusNotifier *sn = (StatusNotifier *) data;
StatusNotifierPrivate *priv = sn->priv; StatusNotifierPrivate *priv = sn->priv;
@ -1550,7 +1559,7 @@ get_prop (GDBusConnection *conn,
return g_variant_new ("s", priv->id); return g_variant_new ("s", priv->id);
else if (!g_strcmp0 (property, "Category")) else if (!g_strcmp0 (property, "Category"))
{ {
const gchar const *s_category[] = { const gchar *s_category[] = {
"ApplicationStatus", "ApplicationStatus",
"Communications", "Communications",
"SystemServices", "SystemServices",
@ -1562,7 +1571,7 @@ get_prop (GDBusConnection *conn,
return g_variant_new ("s", (priv->title) ? priv->title : ""); return g_variant_new ("s", (priv->title) ? priv->title : "");
else if (!g_strcmp0 (property, "Status")) else if (!g_strcmp0 (property, "Status"))
{ {
const gchar const *s_status[] = { const gchar *s_status[] = {
"Passive", "Passive",
"Active", "Active",
"NeedsAttention" "NeedsAttention"
@ -1644,6 +1653,7 @@ dbus_failed (StatusNotifier *sn, GError *error, gboolean fatal)
static void static void
bus_acquired (GDBusConnection *conn, const gchar *name, gpointer data) bus_acquired (GDBusConnection *conn, const gchar *name, gpointer data)
{ {
(void)name;
GError *err = NULL; GError *err = NULL;
StatusNotifier *sn = (StatusNotifier *) data; StatusNotifier *sn = (StatusNotifier *) data;
StatusNotifierPrivate *priv = sn->priv; StatusNotifierPrivate *priv = sn->priv;
@ -1694,6 +1704,7 @@ register_item_cb (GObject *sce, GAsyncResult *result, gpointer data)
static void static void
name_acquired (GDBusConnection *conn, const gchar *name, gpointer data) name_acquired (GDBusConnection *conn, const gchar *name, gpointer data)
{ {
(void)conn;
StatusNotifier *sn = (StatusNotifier *) data; StatusNotifier *sn = (StatusNotifier *) data;
StatusNotifierPrivate *priv = sn->priv; StatusNotifierPrivate *priv = sn->priv;
@ -1712,6 +1723,7 @@ name_acquired (GDBusConnection *conn, const gchar *name, gpointer data)
static void static void
name_lost (GDBusConnection *conn, const gchar *name, gpointer data) name_lost (GDBusConnection *conn, const gchar *name, gpointer data)
{ {
(void)name;
GError *err = NULL; GError *err = NULL;
StatusNotifier *sn = (StatusNotifier *) data; StatusNotifier *sn = (StatusNotifier *) data;
@ -1754,6 +1766,9 @@ watcher_signal (GDBusProxy *proxy,
GVariant *params, GVariant *params,
StatusNotifier *sn) StatusNotifier *sn)
{ {
(void)proxy;
(void)sender;
(void)params;
StatusNotifierPrivate *priv = sn->priv; StatusNotifierPrivate *priv = sn->priv;
if (!g_strcmp0 (signal, "StatusNotifierHostRegistered")) if (!g_strcmp0 (signal, "StatusNotifierHostRegistered"))
@ -1768,6 +1783,7 @@ watcher_signal (GDBusProxy *proxy,
static void static void
proxy_cb (GObject *sce, GAsyncResult *result, gpointer data) proxy_cb (GObject *sce, GAsyncResult *result, gpointer data)
{ {
(void)sce;
GError *err = NULL; GError *err = NULL;
StatusNotifier *sn = (StatusNotifier *) data; StatusNotifier *sn = (StatusNotifier *) data;
StatusNotifierPrivate *priv = sn->priv; StatusNotifierPrivate *priv = sn->priv;
@ -1814,6 +1830,9 @@ watcher_appeared (GDBusConnection *conn,
const gchar *owner, const gchar *owner,
gpointer data) gpointer data)
{ {
(void)conn;
(void)name;
(void)owner;
StatusNotifier *sn = data; StatusNotifier *sn = data;
StatusNotifierPrivate *priv = sn->priv; StatusNotifierPrivate *priv = sn->priv;
GDBusNodeInfo *info; GDBusNodeInfo *info;
@ -1839,6 +1858,8 @@ watcher_vanished (GDBusConnection *conn,
const gchar *name, const gchar *name,
gpointer data) gpointer data)
{ {
(void)conn;
(void)name;
GError *err = NULL; GError *err = NULL;
StatusNotifier *sn = data; StatusNotifier *sn = data;
StatusNotifierPrivate *priv = sn->priv; StatusNotifierPrivate *priv = sn->priv;