aboutsummaryrefslogtreecommitdiffstats
path: root/src/location-geoclue2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/location-geoclue2.c')
-rw-r--r--src/location-geoclue2.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/location-geoclue2.c b/src/location-geoclue2.c
index 773e99d..a60867b 100644
--- a/src/location-geoclue2.c
+++ b/src/location-geoclue2.c
@@ -40,7 +40,7 @@ struct location_state {
/* Print the message explaining denial from GeoClue. */
static void
-print_denial_message()
+print_denial_message(void)
{
g_printerr(_(
"Access to the current location was denied by GeoClue!\n"
@@ -75,6 +75,8 @@ geoclue_client_signal_cb(GDBusProxy *client, gchar *sender_name,
GError *error;
GVariant *lat_v, *lon_v;
+ (void) sender_name;
+
/* Only handle LocationUpdated signals */
if (g_strcmp0(signal_name, "LocationUpdated") != 0) {
return;
@@ -130,6 +132,9 @@ on_name_appeared(GDBusConnection *conn, const gchar *name,
GError *error;
GVariant *ret_v;
+ (void) name;
+ (void) name_owner;
+
/* Obtain GeoClue Manager */
error = NULL;
geoclue_manager = g_dbus_proxy_new_sync(
@@ -270,6 +275,9 @@ on_name_vanished(GDBusConnection *connection, const gchar *name,
{
struct location_state *state = user_data;
+ (void) connection;
+ (void) name;
+
g_mutex_lock(&state->lock);
state->available = 0;
@@ -286,6 +294,8 @@ on_pipe_closed(GIOChannel *channel, GIOCondition condition, gpointer user_data)
struct location_state *state = user_data;
g_main_loop_quit(state->loop);
+ (void) channel;
+ (void) condition;
return FALSE;
}
@@ -400,6 +410,8 @@ static int
location_geoclue2_set_option(struct location_state *state,
const char *key, const char *value)
{
+ (void) state;
+ (void) value;
fprintf(stderr, _("Unknown method parameter: `%s'.\n"), key);
return -1;
}