summaryrefslogtreecommitdiff
path: root/calendar
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-08-13 15:56:44 +0000
committerRoss Burton <rburton@src.gnome.org>2007-08-13 15:56:44 +0000
commit63dfd050e8c08057634d4f7e2c83fc0692664bf1 (patch)
tree1078a82cbc25186b81d942555fc6932b01d63f6a /calendar
parentb0beb42ff9b8f87113933c21d622a5cc74c983b0 (diff)
downloadevolution-data-server-63dfd050e8c08057634d4f7e2c83fc0692664bf1.tar.gz
Fix compile warnings.
2007-08-13 Ross Burton <ross@openedhand.com> * 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
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/backends/weather/e-weather-source-ccf.c12
-rw-r--r--calendar/libecal/e-cal-component.c2
-rw-r--r--calendar/libedata-cal/e-cal-backend-cache.c2
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 <ross@openedhand.com>
+
+ * 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 <mbarnes@redhat.com>
* 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;