From: Wolfgang Bangerth Date: Fri, 24 Jun 2016 01:23:38 +0000 (-0500) Subject: Avoid some warnings in case we don't have GSL available. X-Git-Tag: v8.5.0-rc1~959^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2707%2Fhead;p=dealii.git Avoid some warnings in case we don't have GSL available. --- diff --git a/source/fe/fe_series.cc b/source/fe/fe_series.cc index c647a7a2dc..0a186e38cc 100644 --- a/source/fe/fe_series.cc +++ b/source/fe/fe_series.cc @@ -205,6 +205,7 @@ namespace FESeries double Lh(const Point &x_q, const TableIndices &indices) { +#ifdef DEAL_II_WITH_GSL double res = 1.0; for (unsigned int d = 0; d < dim; d++) { @@ -212,14 +213,18 @@ namespace FESeries Assert ( (x_q[d] <= 1.0) && (x_q[d] >= 0.), ExcLegendre(d,x_q[d])); const int ind = indices[d]; -#ifdef DEAL_II_WITH_GSL res *= sqrt(2.0) * gsl_sf_legendre_Pl (ind, x); -#else - AssertThrow(false, ExcMessage("deal.II has to be configured with GSL" - "in order to use Legendre transformation.")); -#endif } return res; + +#else + + (void)x_q; + (void)indices; + AssertThrow(false, ExcMessage("deal.II has to be configured with GSL" + "in order to use Legendre transformation.")); + return 0; +#endif } /*