unicodeio.c: mark unused parameters
authorJim Meyering <meyering@redhat.com>
Sat, 29 Nov 2008 16:42:45 +0000 (17:42 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 7 Dec 2008 17:44:58 +0000 (18:44 +0100)
* lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
(fallback_failure_callback): Likewise.

ChangeLog
lib/unicodeio.c

index 985cb0b..2865b54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-07  Jim Meyering  <meyering@redhat.com>
+
+       unicodeio.c: mark unused parameters
+       * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
+       (fallback_failure_callback): Likewise.
+
 2008-12-07  Bruno Haible  <bruno@clisp.org>
 
        * gnulib-tool (func_create_testdir): When building the tests
        type mismatches.
 
 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
 
 2008-11-29  Jim Meyering  <meyering@redhat.com>
 
+       unicodeio.c: mark unused parameters
+       * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
+       (fallback_failure_callback): Likewise.
+
        fts: fix a thinko
        * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
        (set_stat_type): Return S_IF*-valued "type" directly.
index 9d50a40..781621c 100644 (file)
@@ -168,7 +168,8 @@ fwrite_success_callback (const char *buf, size_t buflen, void *callback_arg)
 
 /* Simple failure callback that displays an error and exits.  */
 static long
-exit_failure_callback (unsigned int code, const char *msg, void *callback_arg)
+exit_failure_callback (unsigned int code, const char *msg,
+                      void *callback_arg _UNUSED_PARAMETER_)
 {
   if (msg == NULL)
     error (1, 0, _("cannot convert U+%04X to local character set"), code);
@@ -181,7 +182,9 @@ exit_failure_callback (unsigned int code, const char *msg, void *callback_arg)
 /* Simple failure callback that displays a fallback representation in plain
    ASCII, using the same notation as ISO C99 strings.  */
 static long
-fallback_failure_callback (unsigned int code, const char *msg, void *callback_arg)
+fallback_failure_callback (unsigned int code,
+                          const char *msg _UNUSED_PARAMETER_,
+                          void *callback_arg)
 {
   FILE *stream = (FILE *) callback_arg;