[gom] gom: Fix a number of build warnings
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gom] gom: Fix a number of build warnings
- Date: Sun, 21 Sep 2014 17:32:11 +0000 (UTC)
commit 4a32e86d9545e3496ce5415c1bbf4d42d3548553
Author: Bastien Nocera <hadess hadess net>
Date: Sun Sep 21 18:52:46 2014 +0200
gom: Fix a number of build warnings
gom/gom-filter.c | 2 +-
gom/gom-resource-group.c | 10 +++++-----
gom/gom-resource.c | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gom/gom-filter.c b/gom/gom-filter.c
index 43dc434..6b077ca 100644
--- a/gom/gom-filter.c
+++ b/gom/gom-filter.c
@@ -173,7 +173,7 @@ gom_filter_new_lte (GType resource_type,
return gom_filter_new_for_param(resource_type, property_name, GOM_FILTER_LTE, value);
}
-GomFilterMode
+static GomFilterMode
gom_filter_get_mode (GomFilter *filter)
{
g_return_val_if_fail(GOM_IS_FILTER(filter), 0);
diff --git a/gom/gom-resource-group.c b/gom/gom-resource-group.c
index f4ba45e..100a613 100644
--- a/gom/gom-resource-group.c
+++ b/gom/gom-resource-group.c
@@ -55,7 +55,7 @@ enum
static GParamSpec *gParamSpecs[LAST_PROP];
-GomFilter *
+static GomFilter *
gom_resource_group_get_filter (GomResourceGroup *group)
{
g_return_val_if_fail(GOM_IS_RESOURCE_GROUP(group), NULL);
@@ -110,7 +110,7 @@ gom_resource_group_set_m2m_table (GomResourceGroup *group,
g_object_notify_by_pspec(G_OBJECT(group), gParamSpecs[PROP_M2M_TABLE]);
}
-GType
+static GType
gom_resource_group_get_m2m_type (GomResourceGroup *group)
{
g_return_val_if_fail(GOM_IS_RESOURCE_GROUP(group), 0);
@@ -126,7 +126,7 @@ gom_resource_group_set_m2m_type (GomResourceGroup *group,
g_object_notify_by_pspec(G_OBJECT(group), gParamSpecs[PROP_M2M_TYPE]);
}
-GomRepository *
+static GomRepository *
gom_resource_group_get_repository (GomResourceGroup *group)
{
g_return_val_if_fail(GOM_IS_RESOURCE_GROUP(group), NULL);
@@ -144,7 +144,7 @@ gom_resource_group_set_repository (GomResourceGroup *group,
g_object_notify_by_pspec(G_OBJECT(group), gParamSpecs[PROP_REPOSITORY]);
}
-GType
+static GType
gom_resource_group_get_resource_type (GomResourceGroup *group)
{
g_return_val_if_fail(GOM_IS_RESOURCE_GROUP(group), G_TYPE_INVALID);
@@ -369,7 +369,7 @@ gom_resource_group_fetch_async (GomResourceGroup *group,
g_object_set_data(G_OBJECT(simple), "offset", GINT_TO_POINTER(index_));
g_object_set_data(G_OBJECT(simple), "limit", GINT_TO_POINTER(count));
- adapter = gom_repository_get_adapter(group->priv->repository);
+ adapter = gom_repository_get_adapter(priv->repository);
gom_adapter_queue_read(adapter, gom_resource_group_fetch_cb, simple);
}
diff --git a/gom/gom-resource.c b/gom/gom-resource.c
index 8ac6b65..47cced8 100644
--- a/gom/gom-resource.c
+++ b/gom/gom-resource.c
@@ -251,7 +251,7 @@ gom_resource_class_set_notnull (GomResourceClass *resource_class,
GUINT_TO_POINTER (TRUE), NULL);
}
-GomRepository *
+static GomRepository *
gom_resource_get_repository (GomResource *resource)
{
g_return_val_if_fail(GOM_IS_RESOURCE(resource), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]