Skip to content

Commit

Permalink
bpo-29946: Fix "sqrtpi defined but not used" (python#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
louisom authored and serhiy-storchaka committed Mar 30, 2017
1 parent 5466d4a commit 7a26464
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/mathmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a26464

Please sign in to comment.