Index: calendar/gui/dialogs/task-page.c
===================================================================
--- calendar/gui/dialogs/task-page.c	(revision 34350)
+++ calendar/gui/dialogs/task-page.c	(working copy)
@@ -70,7 +70,6 @@
 	EAccountList *accounts;
 	GList *address_strings;
 	EMeetingAttendee *ia;	
-	char *default_address;
 	char *user_add;
 	ECalComponent *comp;
 
@@ -215,7 +214,6 @@
 	priv->accounts = NULL;
 	priv->address_strings = NULL;
 	priv->ia = NULL;
-	priv->default_address = NULL;
 	priv->invite = NULL;
 	
 	priv->model = NULL;
@@ -1913,7 +1911,8 @@
 	TaskPagePrivate *priv;
 	GList *l;
 	EAccount *def_account;
-	const char *def_address = NULL;
+	char *def_address = NULL;
+	const char *default_address;
 	gboolean subscribed_cal = FALSE;
 	ESource *source = NULL;
 	const char *user_addr = NULL;
@@ -1933,25 +1932,27 @@
 	else 
 		user_addr = (backend_address && *backend_address) ? backend_address : NULL;
 
-	priv->default_address = NULL;
+	default_address = NULL;
 	if (user_addr)
 		for (l = priv->address_strings; l != NULL && user_addr; l = l->next)
 			if (g_strrstr ((gchar *) l->data, user_addr) != NULL) {
-				priv->default_address = (gchar *) l->data;
+				default_address = (const char *) l->data;
 				break;
 			}
 
-	if (!priv->default_address && def_address)
-		priv->default_address = def_address;
+	if (!default_address && def_address)
+		default_address = def_address;
 
-	if (priv->default_address) {
+	if (default_address) {
 		if (!priv->comp || !e_cal_component_has_organizer (priv->comp)) {
-			gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (priv->organizer)->entry), priv->default_address);
+			gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (priv->organizer)->entry), default_address);
 			/* FIXME: Use accessor functions to access private members of a GtkCombo widget */
 			gtk_widget_set_sensitive (GTK_WIDGET (GTK_COMBO (priv->organizer)->button), !subscribed_cal);
 		}
 	} else
 		g_warning ("No potential organizers!");
+
+	g_free (def_address);
 }
 
 /**
Index: calendar/gui/dialogs/alarm-dialog.c
===================================================================
--- calendar/gui/dialogs/alarm-dialog.c	(revision 34350)
+++ calendar/gui/dialogs/alarm-dialog.c	(working copy)
@@ -624,6 +624,8 @@
 	case E_CAL_COMPONENT_ALARM_TRIGGER_RELATIVE_END:	
 		e_dialog_option_menu_set (dialog->time, E_CAL_COMPONENT_ALARM_TRIGGER_RELATIVE_END, time_map);
 		break;
+	default:
+		break;
 	}
 
 	switch ( trigger->u.rel_duration.is_neg ){
@@ -674,6 +676,8 @@
 	case E_CAL_COMPONENT_ALARM_PROCEDURE:
 		alarm_to_palarm_widgets (dialog, dialog->alarm);
 		break;
+	default:
+		break;
 	}
 }
 
Index: calendar/gui/dialogs/event-page.c
===================================================================
--- calendar/gui/dialogs/event-page.c	(revision 34350)
+++ calendar/gui/dialogs/event-page.c	(working copy)
@@ -83,7 +83,6 @@
 	EAccountList *accounts;
 	GList *address_strings;
 	EMeetingAttendee *ia;	
-	char *default_address;
 	char *user_add;
 	ECalComponent *comp;
 
@@ -256,7 +255,6 @@
 	priv->accounts = NULL;
 	priv->address_strings = NULL;
 	priv->ia = NULL;
-	priv->default_address = NULL;
 	priv->invite = NULL;
 	
 	priv->model = NULL;
@@ -3147,7 +3145,8 @@
 	EventPagePrivate *priv;
 	GList *l;
 	EAccount *def_account;
-	const char *def_address = NULL;
+	char *def_address = NULL;
+	const char *default_address;
 	gboolean subscribed_cal = FALSE;
 	ESource *source = NULL;
 	const char *user_addr = NULL;
@@ -3167,25 +3166,27 @@
 	else
  		user_addr = (backend_address && *backend_address) ? backend_address : NULL;
 
-	priv->default_address = NULL;
+	default_address = NULL;
 	if (user_addr)
 		for (l = priv->address_strings; l != NULL && user_addr; l = l->next)
 			if (g_strrstr ((gchar *) l->data, user_addr) != NULL) {
-				priv->default_address = (gchar *) l->data;
+				default_address = (const char *) l->data;
 				break;
 			}
 
-	if (!priv->default_address && def_address)
-		priv->default_address = def_address;
+	if (!default_address && def_address)
+		default_address = def_address;
 
-	if (priv->default_address) {
+	if (default_address) {
 		if (!priv->comp || !e_cal_component_has_organizer (priv->comp)) {
-			gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (priv->organizer)->entry), priv->default_address);
+			gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (priv->organizer)->entry), default_address);
 			/* FIXME: Use accessor functions to access private members of a GtkCombo widget */
 			gtk_widget_set_sensitive (GTK_WIDGET (GTK_COMBO (priv->organizer)->button), !subscribed_cal);
 		}
 	} else
 		g_warning ("No potential organizers!");
+
+	g_free (def_address);
 }
 
 /**
Index: calendar/gui/dialogs/memo-page.c
===================================================================
--- calendar/gui/dialogs/memo-page.c	(revision 34350)
+++ calendar/gui/dialogs/memo-page.c	(working copy)
@@ -98,7 +98,6 @@
 	GtkWidget *source_selector;
 
 	GList *address_strings;
-	char *default_address;
 
 	ENameSelector *name_selector;
 
@@ -178,7 +177,6 @@
 	priv->updating = FALSE;
 
 	priv->address_strings = NULL;
-	priv->default_address = NULL;
 }
 
 /* Destroy handler for the memo page */
@@ -1112,7 +1110,8 @@
 	MemoPagePrivate *priv;
 	GList *l;
 	EAccount *def_account;
-	const char *def_address;
+	char *def_address = NULL;
+	const char *default_address;
 	gboolean subscribed_cal = FALSE;
 	ESource *source = NULL;
 	const char *user_addr = NULL;
@@ -1132,24 +1131,26 @@
 	else 
 		user_addr = backend_address;
 
-	priv->default_address = NULL;
+	default_address = NULL;
 	for (l = priv->address_strings; l != NULL; l = l->next)
 		if (g_strrstr ((gchar *) l->data, user_addr) != NULL) {
-			priv->default_address = (gchar *) l->data;
+			default_address = (const char *) l->data;
 			break;
 		}
 
-	if (!priv->default_address && def_account)
-		priv->default_address = def_address;
+	if (!default_address && def_account)
+		default_address = def_address;
 
-	if (priv->default_address) {
+	if (default_address) {
 		if (COMP_EDITOR_PAGE (mpage)->flags & COMP_EDITOR_PAGE_NEW_ITEM) {
-			gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (priv->org_combo)->entry), priv->default_address);
+			gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (priv->org_combo)->entry), default_address);
 			/* FIXME: Use accessor functions to access private members of a GtkCombo widget */
 			gtk_widget_set_sensitive (GTK_WIDGET (GTK_COMBO (priv->org_combo)->button), !subscribed_cal);
 		}
 	} else
 		g_warning ("No potential organizers!");
+
+	g_free (def_address);
 }
 
 /**
Index: calendar/gui/e-day-view-layout.c
===================================================================
--- calendar/gui/e-day-view-layout.c	(revision 34350)
+++ calendar/gui/e-day-view-layout.c	(working copy)
@@ -39,15 +39,15 @@
 static void e_day_view_layout_day_event (EDayViewEvent    *event,
 					 guint8	          *grid,
 					 guint16	  *group_starts,
-					 gint8	          *cols_per_row,
+					 guint8	          *cols_per_row,
 					 gint	           rows,
 					 gint	           mins_per_row);
 static void e_day_view_expand_day_event (EDayViewEvent    *event,
 					 guint8	          *grid,
-					 gint8	          *cols_per_row,
+					 guint8	          *cols_per_row,
 					 gint	           mins_per_row);
 static void e_day_view_recalc_cols_per_row (gint           rows,
-					    gint8	  *cols_per_row,
+					    guint8	  *cols_per_row,
 					    guint16       *group_starts);
 
 
@@ -131,7 +131,7 @@
 e_day_view_layout_day_events (GArray	   *events,
 			      gint	    rows,
 			      gint	    mins_per_row,
-			      gint8	   *cols_per_row)
+			      guint8	   *cols_per_row)
 {
 	EDayViewEvent *event;
 	gint row, event_num;
@@ -192,7 +192,7 @@
 e_day_view_layout_day_event (EDayViewEvent *event,
 			     guint8	   *grid,
 			     guint16	   *group_starts,
-			     gint8	   *cols_per_row,
+			     guint8	   *cols_per_row,
 			     gint	    rows,
 			     gint	    mins_per_row)
 {
@@ -261,7 +261,7 @@
    rows, and set the number of cols in each of the rows to that. */
 static void
 e_day_view_recalc_cols_per_row (gint      rows,
-				gint8	 *cols_per_row,
+				guint8	 *cols_per_row,
 				guint16  *group_starts)
 {
 	gint start_row = 0, row, next_start_row, max_events;
@@ -285,7 +285,7 @@
 static void
 e_day_view_expand_day_event (EDayViewEvent *event,
 			     guint8	   *grid,
-			     gint8	   *cols_per_row,
+			     guint8	   *cols_per_row,
 			     gint	    mins_per_row)
 {
 	gint start_row, end_row, col, row;
Index: calendar/gui/e-day-view-layout.h
===================================================================
--- calendar/gui/e-day-view-layout.h	(revision 34350)
+++ calendar/gui/e-day-view-layout.h	(working copy)
@@ -41,7 +41,7 @@
 void e_day_view_layout_day_events	(GArray	   *events,
 					 gint	    rows,
 					 gint	    mins_per_row,
-					 gint8	   *cols_per_row);
+					 guint8	   *cols_per_row);
 
 gboolean   e_day_view_find_long_event_days	(EDayViewEvent	*event,
 						 gint		 days_shown,
Index: calendar/gui/e-itip-control.c
===================================================================
--- calendar/gui/e-itip-control.c	(revision 34350)
+++ calendar/gui/e-itip-control.c	(working copy)
@@ -72,9 +72,23 @@
 	char action;
 	gboolean rsvp;
 
-	GtkWidget *ok;
-	GtkWidget *hbox;
-	GtkWidget *vbox;
+	/* to fix strict-aliasing */
+	union {
+		GtkWidget *ok;
+		gpointer okptr;
+	};
+
+	/* to fix strict-aliasing */
+	union {
+		GtkWidget *hbox;
+		gpointer hboxptr;
+	};
+
+	/* to fix strict-aliasing */
+	union {
+		GtkWidget *vbox;
+		gpointer vboxptr;
+	};
 	
 	char *vcalendar;
 	ECalComponent *comp;
@@ -2200,12 +2214,12 @@
 	priv = itip->priv;
 
 	priv->vbox = gtk_vbox_new (FALSE, 12);
-	g_object_add_weak_pointer (G_OBJECT (priv->vbox), (gpointer *) &(priv->vbox));
+	g_object_add_weak_pointer (G_OBJECT (priv->vbox), &priv->vboxptr);
 	gtk_container_add (GTK_CONTAINER (eb), priv->vbox);
 	gtk_widget_show (priv->vbox);
 
 	priv->hbox = gtk_hbox_new (FALSE, 6);
-	g_object_add_weak_pointer (G_OBJECT (priv->hbox), (gpointer *) &(priv->hbox));
+	g_object_add_weak_pointer (G_OBJECT (priv->hbox), priv->hboxptr);
 
 	gtk_box_pack_start (GTK_BOX (priv->vbox), priv->hbox, FALSE, TRUE, 0);
 	gtk_widget_show (priv->hbox);
@@ -2263,7 +2277,7 @@
 	priv = itip->priv;
 	
 	priv->ok = gtk_button_new_from_stock (GTK_STOCK_OK);
-	g_object_add_weak_pointer (G_OBJECT (priv->ok), (gpointer *) &(priv->ok) );
+	g_object_add_weak_pointer (G_OBJECT (priv->ok), &priv->okptr);
 
 	g_signal_connect (priv->ok, "clicked", G_CALLBACK (ok_clicked_cb), itip);
 
Index: calendar/gui/print.c
===================================================================
--- calendar/gui/print.c	(revision 34350)
+++ calendar/gui/print.c	(working copy)
@@ -178,7 +178,7 @@
 	gint end_minute_offset;
 	gint rows;
 	gint mins_per_row;
-	gint8 cols_per_row[DAY_VIEW_ROWS];
+	guint8 cols_per_row[DAY_VIEW_ROWS];
 	gboolean use_24_hour_format;
 };
 
@@ -1670,7 +1670,7 @@
 	g_array_free (spans, TRUE);
 }
 
-
+/*
 static void
 print_year_summary (GtkPrintContext *context, GnomeCalendar *gcal, time_t whence,
 		    double left, double right, double top, double bottom,
@@ -1684,8 +1684,8 @@
 	l = left;
 	t = top;
 
-	/* If morerows is set we do 4 rows and 3 columns instead of 3 rows and
-	   4 columns. This is useful if we switch paper orientation. */
+	/ * If morerows is set we do 4 rows and 3 columns instead of 3 rows and
+	   4 columns. This is useful if we switch paper orientation. * /
 	if (morerows) {
 		rows = 4;
 		cols = 3;
@@ -1713,6 +1713,7 @@
 		}
 	}
 }
+*/
 
 static void
 print_month_summary (GtkPrintContext *context, GnomeCalendar *gcal, time_t whence,
@@ -2068,6 +2069,7 @@
 }
 
 /* XXX Evolution doesn't have a "year" view. */
+/*
 static void
 print_year_view (GtkPrintContext *context, GnomeCalendar *gcal, time_t date)
 {
@@ -2088,7 +2090,7 @@
 			    width, 50,
 			    height, TRUE);
 
-	/* centered title */
+	/ * centered title * /
 	format_date (date, DATE_YEAR, buf, 100);
 	print_text_size_bold (context, buf, PANGO_ALIGN_CENTER,
 			      3, width,
@@ -2096,6 +2098,7 @@
 	cr=gtk_print_context_get_cairo_context (context);
 	cairo_show_page (cr);
 }
+*/
 
 static void
 write_label_piece (time_t t, char *buffer, int size, char *stext, char *etext)
@@ -2526,7 +2529,7 @@
                        EPrintable *printable)
 {
 	GtkPageSetup *setup;
-	gdouble width, height;
+	gdouble width;
 
 	setup = gtk_print_context_get_page_setup (context);
 
Index: calendar/ChangeLog
===================================================================
--- calendar/ChangeLog	(revision 34350)
+++ calendar/ChangeLog	(working copy)
@@ -1,3 +1,17 @@
+2007-10-04  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #439122
+
+	* gui/dialogs/task-page.c:
+	* gui/dialogs/alarm-dialog.c:
+	* gui/dialogs/event-page.c:
+	* gui/dialogs/memo-page.c:
+	* gui/e-day-view-layout.c:
+	* gui/e-day-view-layout.h:
+	* gui/e-itip-control.c:
+	* gui/print.c:
+	Fixes various compiler warnings.
+
 2007-10-02  Matthew Barnes  <mbarnes@redhat.com>
 
 	** Fixes part of bug #469657
