From 63dfd050e8c08057634d4f7e2c83fc0692664bf1 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 13 Aug 2007 15:56:44 +0000 Subject: Fix compile warnings. 2007-08-13 Ross Burton * libedata-cal/e-cal-backend-cache.c: * backends/weather/e-weather-source-ccf.c: * libecal/e-cal-component.c: Fix compile warnings. svn path=/trunk/; revision=7947 --- calendar/ChangeLog | 7 +++++++ calendar/backends/weather/e-weather-source-ccf.c | 12 ++++++------ calendar/libecal/e-cal-component.c | 2 +- calendar/libedata-cal/e-cal-backend-cache.c | 2 +- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 761c014d9..2d2a00abf 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2007-08-13 Ross Burton + + * libedata-cal/e-cal-backend-cache.c: + * backends/weather/e-weather-source-ccf.c: + * libecal/e-cal-component.c: + Fix compile warnings. + 2007-08-10 Matthew Barnes * libecal/e-cal.c: diff --git a/calendar/backends/weather/e-weather-source-ccf.c b/calendar/backends/weather/e-weather-source-ccf.c index a5c775a2b..7b35a20f6 100644 --- a/calendar/backends/weather/e-weather-source-ccf.c +++ b/calendar/backends/weather/e-weather-source-ccf.c @@ -63,19 +63,19 @@ parse_for_url (char *code, char *name, xmlNode *parent) { xmlNode *child; if (parent->type == XML_ELEMENT_NODE) { - if (strcmp (parent->name, "location") == 0) { + if (strcmp ((char*)parent->name, "location") == 0) { child = parent->children; g_assert (child->type == XML_TEXT_NODE); - if (strcmp (child->content, name) == 0) { + if (strcmp ((char*)child->content, name) == 0) { xmlAttr *attr; gchar *url = NULL; for (attr = parent->properties; attr; attr = attr->next) { - if (strcmp (attr->name, "code") == 0) { - if (strcmp (attr->children->content, code) != 0) + if (strcmp ((char*)attr->name, "code") == 0) { + if (strcmp ((char*)attr->children->content, code) != 0) return NULL; } - if (strcmp (attr->name, "url") == 0) - url = attr->children->content; + if (strcmp ((char*)attr->name, "url") == 0) + url = (char*)attr->children->content; } return g_strdup (url); } diff --git a/calendar/libecal/e-cal-component.c b/calendar/libecal/e-cal-component.c index d9731b1a4..71254da20 100644 --- a/calendar/libecal/e-cal-component.c +++ b/calendar/libecal/e-cal-component.c @@ -2790,7 +2790,7 @@ set_period_list (ECalComponent *comp, for (l = pl; l; l = l->next) { ECalComponentPeriod *p; struct period *period; - struct icaldatetimeperiodtype ip; + struct icaldatetimeperiodtype ip = {}; icalparameter_value value_type; g_assert (l->data != NULL); diff --git a/calendar/libedata-cal/e-cal-backend-cache.c b/calendar/libedata-cal/e-cal-backend-cache.c index 2a3c6e43b..ba126a913 100644 --- a/calendar/libedata-cal/e-cal-backend-cache.c +++ b/calendar/libedata-cal/e-cal-backend-cache.c @@ -181,7 +181,7 @@ e_cal_backend_cache_constructor (GType type, { GObject *obj; const char *uri; - ECalSourceType source_type; + ECalSourceType source_type = E_CAL_SOURCE_TYPE_EVENT; ECalBackendCacheClass *klass; GObjectClass *parent_class; -- cgit v1.2.1