Mercurial > hg > octave-lyh > gnulib-hg
changeset 10084:e4945463e1bf
Avoid some warnings from "gcc -Wshadow".
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 17 May 2008 02:35:22 +0200 |
parents | 6622463f0576 |
children | 6eeccac8ebca |
files | ChangeLog lib/vasnprintf.c |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-16 Jim Meyering <meyering@redhat.com> + Bruno Haible <bruno@clisp.org> + + Avoid some warnings from "gcc -Wshadow". + * lib/vasnprintf.c (exp, remainder): Define to different identifiers. + 2008-05-15 Eric Blake <ebb9@byu.net> Extend previous patch to cygwin 1.7.0.
--- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -200,6 +200,13 @@ /* Here we need to call the native sprintf, not rpl_sprintf. */ #undef sprintf +/* Avoid some warnings from "gcc -Wshadow". + This file doesn't use the exp() and remainder() functions. */ +#undef exp +#define exp expo +#undef remainder +#define remainder rem + #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL /* Determine the decimal-point character according to the current locale. */ # ifndef decimal_point_char_defined