fflush: avoid compiler warning
authorEric Blake <eblake@redhat.com>
Thu, 29 Mar 2012 22:57:55 +0000 (16:57 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 29 Mar 2012 23:04:34 +0000 (17:04 -0600)
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>
ChangeLog
lib/fflush.c

index d74544a..86ba7ce 100644 (file)
--- 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'.
index 8879cab..a43eea7 100644 (file)
@@ -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__