Added patch to fix compilation with g++-7
authorIOhannes m zmölnig <zmoelnig@iem.at>
Mon, 30 Oct 2017 08:49:22 +0000 (09:49 +0100)
committerIOhannes m zmölnig <zmoelnig@iem.at>
Mon, 30 Oct 2017 08:49:22 +0000 (09:49 +0100)
Closes: #853418
debian/patches/03-gcc7.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/03-gcc7.patch b/debian/patches/03-gcc7.patch
new file mode 100644 (file)
index 0000000..dd073a8
--- /dev/null
@@ -0,0 +1,17 @@
+Description: Fixed g++-7 build errors
+Author: IOhannes m zmölnig
+Forwarded: no
+Last-Update: 2017-10-30
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- giada.orig/src/gui/elems/mainWindow/mainTimer.cpp
++++ giada/src/gui/elems/mainWindow/mainTimer.cpp
+@@ -60,7 +60,7 @@
+       resizable(nullptr);   // don't resize any widget
+-      char buf[6]; snprintf(buf, 6, "%f", clock::getBpm());
++      char buf[320]; snprintf(buf, 320, "%f", clock::getBpm());
+       bpm->copy_label(buf);
+       bpm->callback(cb_bpm, (void*)this);
index f1d1d9b2a8231c2cd5a8c91b4f49fae232ed9efd..c8a9a4e35ca695f70db2695ec67d6b79d95d20af 100644 (file)
@@ -1,3 +1,4 @@
+01-rtaudio5.patch
 02-rtmidi-pkgconfig.patch
+03-gcc7.patch
 04-catch.patch
-01-rtaudio5.patch