From b014424280750339f367823c259a750e48cd1ebb Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 29 Nov 2008 17:42:45 +0100 Subject: [PATCH] unicodeio.c: mark unused parameters * lib/unicodeio.c (exit_failure_callback): Mark unused parameter. (fallback_failure_callback): Likewise. --- ChangeLog | 12 +++++++++++- lib/unicodeio.c | 7 +++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 985cb0bf2..2865b547e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-12-07 Jim Meyering + + unicodeio.c: mark unused parameters + * lib/unicodeio.c (exit_failure_callback): Mark unused parameter. + (fallback_failure_callback): Likewise. + 2008-12-07 Bruno Haible * gnulib-tool (func_create_testdir): When building the tests @@ -43,12 +49,16 @@ type mismatches. 2008-12-03 Ralf Wildenhues - Bruno Haible + Bruno Haible * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer. 2008-11-29 Jim Meyering + 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. diff --git a/lib/unicodeio.c b/lib/unicodeio.c index 9d50a4085..781621c6f 100644 --- a/lib/unicodeio.c +++ b/lib/unicodeio.c @@ -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; -- 2.11.0