Mercurial > hg > octave-kai > gnulib-hg
changeset 11082:96a37da9a3e2
c-strtod: avoid warnings
* lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
"assignment discards qualifiers from pointer target type" warnings.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sun, 25 Jan 2009 10:50:00 +0100 |
parents | bc5393a47361 |
children | b9fea7c408e9 |
files | ChangeLog lib/c-strtod.c |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-25 Jim Meyering <meyering@redhat.com> + + c-strtod: avoid warnings + * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid + "assignment discards qualifiers from pointer target type" warnings. + 2009-01-24 Bruno Haible <bruno@clisp.org> Add support for non-UTF-8 locales on MacOS X.
--- a/lib/c-strtod.c +++ b/lib/c-strtod.c @@ -73,7 +73,7 @@ if (!locale) { if (endptr) - *endptr = nptr; + *endptr = (char *) nptr; return 0; /* errno is set here */ } @@ -89,7 +89,7 @@ if (saved_locale == NULL) { if (endptr) - *endptr = nptr; + *endptr = (char *) nptr; return 0; /* errno is set here */ } setlocale (LC_NUMERIC, "C");