--- /dev/null
+Description: Fix build with gcc6
+Author: Jaromír Mikeš <mira.mikes@seznam.cz>
+Forwarded: <giadaloopmachine@gmail.com>
+
+Index: giada/src/core/recorder.cpp
+===================================================================
+--- giada.orig/src/core/recorder.cpp
++++ giada/src/core/recorder.cpp
+@@ -651,10 +651,10 @@ void stopOverdub(int frame)
+
+ /* remove any nested action between keypress----keyrel, then record */
+
+- if (!nullLoop)
++ if (!nullLoop) {
+ deleteActions(cmp.a2.chan, cmp.a1.frame, cmp.a2.frame, cmp.a1.type);
+ deleteActions(cmp.a2.chan, cmp.a1.frame, cmp.a2.frame, cmp.a2.type);
+-
++ }
+ if (!ringLoop && !nullLoop) {
+ rec(cmp.a2.chan, cmp.a2.type, cmp.a2.frame);
+
+Index: giada/src/glue/glue.cpp
+===================================================================
+--- giada.orig/src/glue/glue.cpp
++++ giada/src/glue/glue.cpp
+@@ -711,7 +711,7 @@ void glue_setPanning(class gdEditor *win
+ ch->panRight= 0.0f + val;
+
+ char buf[8];
+- sprintf(buf, "%d L", abs((ch->panRight * 100.0f) - 100));
++ sprintf(buf, "%f L", abs((ch->panRight * 100.0f) - 100));
+ win->panNum->value(buf);
+ }
+ else if (val == 1.0f) {
+@@ -724,7 +724,7 @@ void glue_setPanning(class gdEditor *win
+ ch->panRight= 1.0f;
+
+ char buf[8];
+- sprintf(buf, "%d R", abs((ch->panLeft * 100.0f) - 100));
++ sprintf(buf, "%f R", abs((ch->panLeft * 100.0f) - 100));
+ win->panNum->value(buf);
+ }
+ win->panNum->redraw();
+Index: giada/src/gui/dialogs/gd_editor.cpp
+===================================================================
+--- giada.orig/src/gui/dialogs/gd_editor.cpp
++++ giada/src/gui/dialogs/gd_editor.cpp
+@@ -202,7 +202,7 @@ gdEditor::gdEditor(SampleChannel *ch)
+
+ if (ch->panRight < 1.0f) {
+ char buf[8];
+- sprintf(buf, "%d L", abs((ch->panRight * 100.0f) - 100));
++ sprintf(buf, "%f L", abs((ch->panRight * 100.0f) - 100));
+ pan->value(ch->panRight);
+ panNum->value(buf);
+ }
+@@ -212,7 +212,7 @@ gdEditor::gdEditor(SampleChannel *ch)
+ }
+ else {
+ char buf[8];
+- sprintf(buf, "%d R", abs((ch->panLeft * 100.0f) - 100));
++ sprintf(buf, "%f R", abs((ch->panLeft * 100.0f) - 100));
+ pan->value(2.0f - ch->panLeft);
+ panNum->value(buf);
+ }
+Index: giada/src/gui/elems/ge_mixed.cpp
+===================================================================
+--- giada.orig/src/gui/elems/ge_mixed.cpp
++++ giada/src/gui/elems/ge_mixed.cpp
+@@ -612,9 +612,10 @@ void gBaseButton::trimLabel()
+ len--;
+ }
+ }
+- else
++ else {
+ out = "";
+ copy_label(out.c_str());
++ }
+ }
+
+