projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
strtod: Add safety check.
[gnulib.git]
/
lib
/
strtod.c
diff --git
a/lib/strtod.c
b/lib/strtod.c
index
6188759
..
83b858a
100644
(file)
--- a/
lib/strtod.c
+++ b/
lib/strtod.c
@@
-45,7
+45,12
@@
locale_isspace (char c)
#if !HAVE_LDEXP_IN_LIBC
#define ldexp dummy_ldexp
#if !HAVE_LDEXP_IN_LIBC
#define ldexp dummy_ldexp
- static double ldexp (double x, int exponent) { return x + exponent; }
+ /* A dummy definition that will never be invoked. */
+ static double ldexp (double x _GL_UNUSED, int exponent _GL_UNUSED)
+ {
+ abort ();
+ return 0.0;
+ }
#endif
/* Return X * BASE**EXPONENT. Return an extreme value and set errno
#endif
/* Return X * BASE**EXPONENT. Return an extreme value and set errno