Mercurial > hg > octave-kai > gnulib-hg
changeset 16724:1d4824d7f352
fflush: avoid compiler warning
Compiling under glibc produced warnings.
* lib/fflush.c (update_fpos_cache): Mark variables that are
potentially unused.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Thu, 29 Mar 2012 16:57:55 -0600 |
parents | 376ee9a0ad8d |
children | fb659d60019f |
files | ChangeLog lib/fflush.c |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-03-29 Eric Blake <eblake@redhat.com> + + fflush: avoid compiler warning + * lib/fflush.c (update_fpos_cache): Mark variables that are + potentially unused. + 2012-03-25 Bruno Haible <bruno@clisp.org> Tests for module 'localeconv'.
--- a/lib/fflush.c +++ b/lib/fflush.c @@ -88,7 +88,8 @@ #endif static inline void -update_fpos_cache (FILE *fp, off_t pos) +update_fpos_cache (FILE *fp _GL_UNUSED_PARAMETER, + off_t pos _GL_UNUSED_PARAMETER) { #if defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */ # if defined __CYGWIN__