From: Eric Blake Date: Thu, 29 Mar 2012 22:57:55 +0000 (-0600) Subject: fflush: avoid compiler warning X-Git-Tag: v0.1~802 X-Git-Url: http://erislabs.net/gitweb/?p=gnulib.git;a=commitdiff_plain;h=dee31b615239639303d46ded10c61bfec9e92d48 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 index d74544a14..86ba7ceca 100644 --- 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 index 8879cab9e..a43eea7f4 100644 --- a/lib/fflush.c +++ b/lib/fflush.c @@ -88,7 +88,8 @@ restore_seek_optimization (FILE *fp, int saved_flags) #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__