diff -up denemo-1.1.2/src/exportlilypond.c.orig denemo-1.1.2/src/exportlilypond.c
--- denemo-1.1.2/src/exportlilypond.c.orig	2014-03-01 15:39:01.106623762 +0100
+++ denemo-1.1.2/src/exportlilypond.c	2014-03-01 15:46:31.363884180 +0100
@@ -3046,7 +3046,7 @@ init_lilypond_buffer(void){
   gtk_text_tag_table_add (tagtable, t);
 
 
-  Denemo.textbuffer = gtk_source_buffer_new (tagtable);
+  Denemo.textbuffer = (GtkTextBuffer *)gtk_source_buffer_new (tagtable);
   gtk_source_buffer_set_highlight_syntax (Denemo.textbuffer, TRUE);
 }
 
@@ -3065,7 +3065,7 @@ create_lilywindow (void)
   gtk_container_add (GTK_CONTAINER (Denemo.textwindow), top_pane);
   create_console (vbox);
 
-  GtkWidget *view = gtk_source_view_new ();
+  GtkWidget *view = (GtkWidget *)gtk_source_view_new ();
   GtkWidget *sw = gtk_scrolled_window_new (NULL, NULL);
   gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
   gtk_paned_add1 (GTK_PANED (top_pane), sw);
diff -up denemo-1.1.2/src/guidedimportmidi.c.orig denemo-1.1.2/src/guidedimportmidi.c
--- denemo-1.1.2/src/guidedimportmidi.c.orig	2014-03-01 15:38:38.778514928 +0100
+++ denemo-1.1.2/src/guidedimportmidi.c	2014-03-01 15:47:38.183186773 +0100
@@ -357,7 +357,7 @@ readtrack (gint track)
          else
             ((smf_track_t *)Denemo.project->movement->recorded_midi_track)->smf = smf;
       }
-      selected_track->user_pointer = track;
+      selected_track->user_pointer = (void *)track;
       Denemo.project->movement->recorded_midi_track = selected_track;
       compute_midi_note_durations (); //fills Denemo.project->movement->recording->notes with the note durations
       ((smf_track_t *)Denemo.project->movement->recorded_midi_track)->smf = NULL; // we detach this track from smf, so it can be attached to the playback smf; we cannot use smf while this is done, as it thinks it still owns the track.      
diff -up denemo-1.1.2/src/palettes.c.orig denemo-1.1.2/src/palettes.c
--- denemo-1.1.2/src/palettes.c.orig	2014-03-01 15:39:14.780302835 +0100
+++ denemo-1.1.2/src/palettes.c	2014-03-01 15:51:32.312764048 +0100
@@ -531,7 +531,7 @@ gchar *get_palette_name (gboolean allow_
 	return choose_palette_by_name (allow_custom, FALSE);
 }
 
-gboolean place_action_in_palette (gint idx, const gchar *name)
+void place_action_in_palette (gint idx, const gchar *name)
 {
      gchar *label = (gchar *) lookup_label_from_idx (Denemo.map, idx);
      if(name==NULL)
diff -up denemo-1.1.2/src/palettes.h.orig denemo-1.1.2/src/palettes.h
--- denemo-1.1.2/src/palettes.h.orig	2014-03-01 16:27:39.123883429 +0100
+++ denemo-1.1.2/src/palettes.h	2014-03-01 16:28:14.158608030 +0100
@@ -1,18 +1,18 @@
 /*
  * palettes.h
- * 
- * Copyright 2013 Richard Shann 
- * 
+ *
+ * Copyright 2013 Richard Shann
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
@@ -23,7 +23,7 @@
 #include <gtk/gtk.h>
 #include <denemo/denemo.h>
 #include <string.h>
- 
+
 
 /* returns palette of given name, returns NULL if none */
 DenemoPalette *get_palette (gchar *name);
@@ -35,5 +35,5 @@ void repack_palette (DenemoPalette *pal)
 void delete_palette (DenemoPalette *pal);
 gchar *get_palette_name (gboolean allow_custom);
 gchar *choose_palette_by_name (gboolean allow_custom, gboolean non_showing);
-gboolean place_action_in_palette (gint command_idx, const gchar *name);
+void place_action_in_palette (gint command_idx, const gchar *name);
 #endif
diff -up denemo-1.1.2/src/scheme-callbacks.c.orig denemo-1.1.2/src/scheme-callbacks.c
--- denemo-1.1.2/src/scheme-callbacks.c.orig	2014-03-01 15:39:09.452038216 +0100
+++ denemo-1.1.2/src/scheme-callbacks.c	2014-03-01 15:50:17.615069514 +0100
@@ -442,7 +442,7 @@ scheme_http (SCM hname, SCM page, SCM ot
 
   if (name && thepage && post && oth)
     {
-      gchar *ret = post_denemodotorg (name, thepage, oth, post);
+      gchar *ret = (gchar *)post_denemodotorg (name, thepage, oth, post);
       SCM scm = scm_from_locale_string (ret);
       g_free (ret);
       free (name);
@@ -1015,7 +1015,7 @@ scheme_get_current_staff_layout_id (void
 SCM
 scheme_get_layout_id (void)
 {
-  DenemoScoreblock *sb = selected_scoreblock ();
+  DenemoScoreblock *sb = (DenemoScoreblock *)selected_scoreblock ();
   if (sb)
     return scm_from_int (sb->id);
   return SCM_BOOL_F;
@@ -1041,7 +1041,7 @@ scheme_select_default_layout (void)
 SCM
 scheme_get_layout_name (void)
 {
-  DenemoScoreblock *sb = selected_scoreblock ();
+  DenemoScoreblock *sb = (DenemoScoreblock *)selected_scoreblock ();
   if (sb && sb->name)
     return scm_from_locale_string (sb->name);
   return SCM_BOOL_F;
@@ -1052,7 +1052,7 @@ scheme_select_next_layout (void)
 {
   if (gtk_widget_get_visible (Denemo.project->score_layout))
     {
-      DenemoScoreblock *sb = get_next_scoreblock ();
+      DenemoScoreblock *sb = (DenemoScoreblock *)get_next_scoreblock ();
       return sb ? SCM_BOOL_T : SCM_BOOL_F;
     }
   return SCM_BOOL_F;
@@ -1063,7 +1063,7 @@ scheme_select_first_layout (void)
 {
   if (gtk_widget_get_visible (Denemo.project->score_layout))
     {
-      DenemoScoreblock *sb = get_first_scoreblock ();
+      DenemoScoreblock *sb = (DenemoScoreblock *)get_first_scoreblock ();
       return sb ? SCM_BOOL_T : SCM_BOOL_F;
     }
   return SCM_BOOL_F;
@@ -4263,7 +4263,7 @@ scheme_output_midi_bytes (SCM input)
   volume = curstaffstruct->volume;
   char *string_input;
   string_input = scm_to_locale_string (input);
-  gchar *bytes = substitute_midi_values (string_input, channel, volume);
+  gchar *bytes = (gchar *)substitute_midi_values (string_input, channel, volume);
 
   for (i = 0, next = bytes; *next; next++)
     {
diff -up denemo-1.1.2/src/view.c.orig denemo-1.1.2/src/view.c
--- denemo-1.1.2/src/view.c.orig	2014-03-01 15:39:24.924806650 +0100
+++ denemo-1.1.2/src/view.c	2014-03-01 15:53:56.399892810 +0100
@@ -128,6 +128,7 @@ standard_preunwind_proc (void *data,
 {
   // Capture the stack here:
   *(SCM *)data = scm_make_stack (SCM_BOOL_T, SCM_EOL);
+  return *(SCM *)data;
 }
 
 gint
diff -up denemo-1.1.2/tools/cairo_svg2path.c.orig denemo-1.1.2/tools/cairo_svg2path.c
--- denemo-1.1.2/tools/cairo_svg2path.c.orig	2014-03-01 15:39:35.965354978 +0100
+++ denemo-1.1.2/tools/cairo_svg2path.c	2014-03-01 15:50:49.785660567 +0100
@@ -595,7 +595,7 @@ path_data_append_cheader_start (GString
   g_free (NAME);
 }
 
-static gchar *
+static void
 path_data_append_cheader_end (GString * string, gchar * name)
 {
   gchar *NAME = g_utf8_strup (name, -1);
