Compiling under glibc produced warnings.

* lib/fflush.c (update_fpos_cache): Mark variables that are
potentially unused.

Signed-off-by: Eric Blake <[email protected]>
---
 ChangeLog    |    4 ++++
 lib/fflush.c |    3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 768ab46..0a5ca61 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-03-29  Eric Blake  <[email protected]>

+       fflush: avoid compiler warning
+       * lib/fflush.c (update_fpos_cache): Mark variables that are
+       potentially unused.
+
        ssize_t: fix definition on mingw
        * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Match rank of size_t.

diff --git a/lib/fflush.c b/lib/fflush.c
index 8879cab..a43eea7 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__
-- 
1.7.7.6


Reply via email to