From dee31b615239639303d46ded10c61bfec9e92d48 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 29 Mar 2012 16:57:55 -0600 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ lib/fflush.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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__ -- 2.11.0