Paul Eggert wrote:
> Thanks for the bug report. I installed the attached patch into Gnulib.

A simpler fix would have been to mark the 'minus_zero' variable as 'static':


--- a/lib/strtod.c
+++ b/lib/strtod.c
@@ -302,7 +302,7 @@ compute_minus_zero (void)
 }
 # define minus_zero compute_minus_zero ()
 #else
-DOUBLE minus_zero = -0.0;
+static DOUBLE minus_zero = -0.0;
 #endif
 
 /* Convert NPTR to a DOUBLE.  If ENDPTR is not NULL, a pointer to the


When this variable was introduced, it ought to have been 'static' from the
beginning (2010-11-05); but this was harmless until 2019-01-30. I did not
notice the problem when doing the 2019-01-30 changes; sorry.

Bruno


Reply via email to