# HG changeset patch # User Eric Blake # Date 1333061875 21600 # Node ID 1d4824d7f352befd768f91ada96a8ac1261be9e1 # Parent 376ee9a0ad8d980258d3c778d8db2c6d50f893fc 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 diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-03-29 Eric Blake + + fflush: avoid compiler warning + * lib/fflush.c (update_fpos_cache): Mark variables that are + potentially unused. + 2012-03-25 Bruno Haible Tests for module 'localeconv'. diff --git a/lib/fflush.c b/lib/fflush.c --- 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__