From: Louie Lu Date: Thu, 30 Mar 2017 17:05:10 +0000 (+0800) Subject: bpo-29946: Fix "sqrtpi defined but not used" (#908) X-Git-Tag: v3.7.0a1~1033 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a26464c6496c29244072fdd80f9b92c68174742;p=thirdparty%2FPython%2Fcpython.git bpo-29946: Fix "sqrtpi defined but not used" (#908) --- diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index d5a8ca1ebefd..243560a4d8bc 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -71,8 +71,10 @@ module math */ static const double pi = 3.141592653589793238462643383279502884197; -static const double sqrtpi = 1.772453850905516027298167483341145182798; static const double logpi = 1.144729885849400174143427351353058711647; +#if !defined(HAVE_ERF) || !defined(HAVE_ERFC) +static const double sqrtpi = 1.772453850905516027298167483341145182798; +#endif /* !defined(HAVE_ERF) || !defined(HAVE_ERFC) */ static double sinpi(double x)