Commit 4a1d6e91 authored by Tobias Hansen's avatar Tobias Hansen

Fix FTBFS with gcc-4.9.

parent 995aceeb
lcalc (1.23+dfsg-3) UNRELEASED; urgency=medium
* Fix FTBFS with gcc-4.9. (Closes: #746867)
* With pari_2.7.patch the package build-depends now on pari >= 2.7
instead of >= 2.5. (Closes: #746048)
......
Description: Make Lcalc (1.23) build with GCC 4.9 (move default parameter from definition to declaration)
This patch just fixes the single instance GCC 4.9 currently complains
about. Clang is more picky, and will need further fixes (including
moving a few more invalid default parameters in function *definitions*
into *declarations* instead).
Author: Leif Leonhardy <not.really@online.de>
Origin: http://git.sagemath.org/sage.git/commit/build/pkgs/lcalc/patches/lcalc-1.23_default_parameters_1.patch?h=develop&id=4d49914efab5a0a91f03542fb5848af7d10a1e5e
Bug: http://trac.sagemath.org/ticket/16208
Bug-Debian: http://bugs.debian.org/746867
--- a/include/Ldirichlet_series.h
+++ b/include/Ldirichlet_series.h
@@ -43,7 +43,7 @@
//XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
template <class ttype>
Complex L_function <ttype>::
-dirichlet_series(Complex s, long long N=-1)
+dirichlet_series(Complex s, long long N)
{
Complex z=0.;
long long m,n;
--- a/include/L.h
+++ b/include/L.h
@@ -491,7 +491,7 @@
//#include "Ldirichlet_series.h" //for computing Dirichlet series
Complex partial_dirichlet_series(Complex s, long long N1, long long N2);
- Complex dirichlet_series(Complex s, long long N);
+ Complex dirichlet_series(Complex s, long long N=-1LL);
//#include "Ltaylor_series.h" //for computing taylor series for Dirichlet series
//void compute_taylor_series(int N, int K, Complex s_0, Complex *series);
......@@ -2,3 +2,4 @@ gcc.patch
pari_2.7.patch
Makefile.patch
fix_pari_include.patch
lcalc-1.23_default_parameters_1.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment