From 932c6a3ce3b1157227cc4bd7674a4c219a506b54 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Tue, 4 Oct 2016 09:21:37 +0200 Subject: [PATCH] ardour: fix gcc6 build --- .../ardour/patches/fix-gcc6-ambigous_max.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/ardour/patches/fix-gcc6-ambigous_max.patch diff --git a/srcpkgs/ardour/patches/fix-gcc6-ambigous_max.patch b/srcpkgs/ardour/patches/fix-gcc6-ambigous_max.patch new file mode 100644 index 00000000000..50783d5f27c --- /dev/null +++ b/srcpkgs/ardour/patches/fix-gcc6-ambigous_max.patch @@ -0,0 +1,16 @@ +The value 1.0 without f is a double constant and gcc6 complains +about a not existing template for max(double,float). + +--- libs/ardour/parameter_descriptor.cc 2016-10-04 09:19:13.780997674 +0200 ++++ libs/ardour/parameter_descriptor.cc 2016-10-04 09:19:45.237999989 +0200 +@@ -178,8 +178,8 @@ + largestep = largestep / logf(30.0f); + } else if (integer_step) { + smallstep = 1.0; +- step = std::max(1.0, rint(step)); +- largestep = std::max(1.0, rint(largestep)); ++ step = std::max(1.0f, rint(step)); ++ largestep = std::max(1.0f, rint(largestep)); + } + } + }