[dconf] service: fix some harmless compile warnings
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] service: fix some harmless compile warnings
- Date: Fri, 12 Jul 2013 14:33:56 +0000 (UTC)
commit e2c8ed5dcd04527c382718a5652b1d4c94ca0f4b
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Jul 12 10:29:32 2013 -0400
service: fix some harmless compile warnings
Mostly missing 'static'.
service/dconf-blame.h | 1 +
service/dconf-keyfile-writer.c | 2 +-
service/dconf-service.c | 4 ++--
service/dconf-writer.c | 8 ++++----
4 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/service/dconf-blame.h b/service/dconf-blame.h
index 07cf85b..3b53710 100644
--- a/service/dconf-blame.h
+++ b/service/dconf-blame.h
@@ -34,6 +34,7 @@ typedef struct _DConfBlame DConfBlame;
#define DCONF_BLAME_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst),
\
DCONF_TYPE_BLAME, DConfBlameClass))
+GType dconf_blame_get_type (void);
DConfBlame *dconf_blame_get (void);
void dconf_blame_record (GDBusMethodInvocation *invocation);
diff --git a/service/dconf-keyfile-writer.c b/service/dconf-keyfile-writer.c
index d5305a3..eae5ca3 100644
--- a/service/dconf-keyfile-writer.c
+++ b/service/dconf-keyfile-writer.c
@@ -43,7 +43,7 @@ typedef struct
G_DEFINE_TYPE (DConfKeyfileWriter, dconf_keyfile_writer, DCONF_TYPE_WRITER)
-DConfChangeset *
+static DConfChangeset *
dconf_keyfile_to_changeset (GKeyFile *keyfile,
const gchar *filename_fyi)
{
diff --git a/service/dconf-service.c b/service/dconf-service.c
index 2d3026e..9c9c88a 100644
--- a/service/dconf-service.c
+++ b/service/dconf-service.c
@@ -144,7 +144,7 @@ dconf_service_subtree_enumerate (GDBusConnection *connection,
return string_set_free (set);
}
-GDBusInterfaceInfo **
+static GDBusInterfaceInfo **
dconf_service_subtree_introspect (GDBusConnection *connection,
const gchar *sender,
const gchar *object_path,
@@ -193,7 +193,7 @@ dconf_service_get_writer (DConfService *service,
return writer;
}
-const GDBusInterfaceVTable *
+static const GDBusInterfaceVTable *
dconf_service_subtree_dispatch (GDBusConnection *connection,
const gchar *sender,
const gchar *object_path,
diff --git a/service/dconf-writer.c b/service/dconf-writer.c
index aa0c96e..fc4e130 100644
--- a/service/dconf-writer.c
+++ b/service/dconf-writer.c
@@ -223,14 +223,14 @@ dconf_writer_real_end (DConfWriter *writer)
g_clear_pointer (&writer->priv->uncommited_values, dconf_changeset_unref);
}
-gboolean
+static gboolean
dconf_writer_begin (DConfWriter *writer,
GError **error)
{
return DCONF_WRITER_GET_CLASS (writer)->begin (writer, error);
}
-void
+static void
dconf_writer_change (DConfWriter *writer,
DConfChangeset *changeset,
const gchar *tag)
@@ -238,14 +238,14 @@ dconf_writer_change (DConfWriter *writer,
DCONF_WRITER_GET_CLASS (writer)->change (writer, changeset, tag);
}
-gboolean
+static gboolean
dconf_writer_commit (DConfWriter *writer,
GError **error)
{
return DCONF_WRITER_GET_CLASS (writer)->commit (writer, error);
}
-void
+static void
dconf_writer_end (DConfWriter *writer)
{
return DCONF_WRITER_GET_CLASS (writer)->end (writer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]