Skip to content

Commit

Permalink
gnulib: stop using obsolete snippet/unused-parameter module
Browse files Browse the repository at this point in the history
  • Loading branch information
rrthomas committed Jan 21, 2022
1 parent 18bca3d commit fd919b4
Show file tree
Hide file tree
Showing 38 changed files with 49 additions and 51 deletions.
3 changes: 1 addition & 2 deletions bootstrap.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bootstrap.conf (Recode) version 2021-06-02
# bootstrap.conf (Recode) version 2022-01-21

# This file is part of Recode.
#
Expand Down Expand Up @@ -66,7 +66,6 @@ gnulib_modules='
pipe-posix
quotearg
sigaction
snippet/unused-parameter
strndup
sys_wait
unistd
Expand Down
2 changes: 1 addition & 1 deletion src/african.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ module_african (RECODE_OUTER outer)
}

void
delmodule_african (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_african (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/afrtran.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,6 @@ module_afrtran (RECODE_OUTER outer)
}

void
delmodule_afrtran (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_afrtran (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/atarist.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ module_atarist (RECODE_OUTER outer)
}

void
delmodule_atarist (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_atarist (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
4 changes: 2 additions & 2 deletions src/bangbang.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ static const char *const translation_table[256] =

static bool
init_latin1_bangbang (RECODE_STEP step,
RECODE_CONST_REQUEST request _GL_UNUSED_PARAMETER,
RECODE_CONST_REQUEST request _GL_ATTRIBUTE_MAYBE_UNUSED,
RECODE_CONST_OPTION_LIST before_options,
RECODE_CONST_OPTION_LIST after_options)
{
Expand Down Expand Up @@ -393,6 +393,6 @@ module_bangbang (RECODE_OUTER outer)
}

void
delmodule_bangbang (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_bangbang (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,6 @@ module_base64 (RECODE_OUTER outer)
}

void
delmodule_base64 (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_base64 (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/cdcnos.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,6 @@ module_cdcnos (RECODE_OUTER outer)
}

void
delmodule_cdcnos (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_cdcnos (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
4 changes: 2 additions & 2 deletions src/combine.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ combined_compare (const void *void_first, const void *void_second)

bool
init_explode (RECODE_STEP step,
RECODE_CONST_REQUEST request _GL_UNUSED_PARAMETER,
RECODE_CONST_REQUEST request _GL_ATTRIBUTE_MAYBE_UNUSED,
RECODE_CONST_OPTION_LIST before_options,
RECODE_CONST_OPTION_LIST after_options)
{
Expand Down Expand Up @@ -376,7 +376,7 @@ find_shifted_state (struct state *state, unsigned character,

bool
init_combine (RECODE_STEP step,
RECODE_CONST_REQUEST request _GL_UNUSED_PARAMETER,
RECODE_CONST_REQUEST request _GL_ATTRIBUTE_MAYBE_UNUSED,
RECODE_CONST_OPTION_LIST before_options,
RECODE_CONST_OPTION_LIST after_options)
{
Expand Down
1 change: 0 additions & 1 deletion src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "localcharset.h"
#include "error.h"
#include "gettext.h"
#include "unused-parameter.h"

#if ENABLE_NLS
# define _(Text) gettext (Text)
Expand Down
2 changes: 1 addition & 1 deletion src/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,6 @@ module_dump (RECODE_OUTER outer)
}

void
delmodule_dump (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_dump (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
8 changes: 4 additions & 4 deletions src/ebcdic.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static unsigned char const ascii_to_ebcdic_ibm[256] =

static bool
init_ascii_ebcdic (RECODE_STEP step,
RECODE_CONST_REQUEST request _GL_UNUSED_PARAMETER,
RECODE_CONST_REQUEST request _GL_ATTRIBUTE_MAYBE_UNUSED,
RECODE_CONST_OPTION_LIST before_options,
RECODE_CONST_OPTION_LIST after_options)
{
Expand Down Expand Up @@ -174,7 +174,7 @@ init_ebcdic_ascii (RECODE_STEP step,

static bool
init_ascii_ebcdic_ccc (RECODE_STEP step,
RECODE_CONST_REQUEST request _GL_UNUSED_PARAMETER,
RECODE_CONST_REQUEST request _GL_ATTRIBUTE_MAYBE_UNUSED,
RECODE_CONST_OPTION_LIST before_options,
RECODE_CONST_OPTION_LIST after_options)
{
Expand Down Expand Up @@ -210,7 +210,7 @@ init_ebcdic_ccc_ascii (RECODE_STEP step,

static bool
init_ascii_ebcdic_ibm (RECODE_STEP step,
RECODE_CONST_REQUEST request _GL_UNUSED_PARAMETER,
RECODE_CONST_REQUEST request _GL_ATTRIBUTE_MAYBE_UNUSED,
RECODE_CONST_OPTION_LIST before_options,
RECODE_CONST_OPTION_LIST after_options)
{
Expand Down Expand Up @@ -268,6 +268,6 @@ module_ebcdic (RECODE_OUTER outer)
}

void
delmodule_ebcdic (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_ebcdic (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/endline.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,6 @@ module_endline (RECODE_OUTER outer)
}

void
delmodule_endline (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_endline (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/flat.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ module_flat (RECODE_OUTER outer)
}

void
delmodule_flat (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_flat (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/html.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,6 @@ module_html (RECODE_OUTER outer)
}

void
delmodule_html (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_html (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/ibmpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,6 @@ module_ibmpc (RECODE_OUTER outer)
}

void
delmodule_ibmpc (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_ibmpc (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/iconqnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,6 @@ module_iconqnx (RECODE_OUTER outer)
}

void
delmodule_iconqnx (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_iconqnx (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/iconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,6 @@ module_iconv (RECODE_OUTER outer)
}

void
delmodule_iconv (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_iconv (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/java.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,6 @@ module_java (RECODE_OUTER outer)
}

void
delmodule_java (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_java (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
6 changes: 3 additions & 3 deletions src/lat1ansel.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ static struct translation diacritic_translations [] =
static bool
init_latin1_ansel (RECODE_STEP step,
const struct recode_request *request,
RECODE_CONST_OPTION_LIST before_options _GL_UNUSED_PARAMETER,
RECODE_CONST_OPTION_LIST after_options _GL_UNUSED_PARAMETER)
RECODE_CONST_OPTION_LIST before_options _GL_ATTRIBUTE_MAYBE_UNUSED,
RECODE_CONST_OPTION_LIST after_options _GL_ATTRIBUTE_MAYBE_UNUSED)
{
RECODE_OUTER outer = request->outer;

Expand Down Expand Up @@ -88,6 +88,6 @@ module_latin1_ansel (RECODE_OUTER outer)
}

void
delmodule_latin1_ansel (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_latin1_ansel (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/lat1asci.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,6 @@ module_latin1_ascii (RECODE_OUTER outer)
}

void
delmodule_latin1_ascii (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_latin1_ascii (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/lat1btex.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,6 @@ module_latin1_bibtex (RECODE_OUTER outer)
}

void
delmodule_latin1_bibtex (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_latin1_bibtex (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
6 changes: 3 additions & 3 deletions src/lat1iso5426.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ static struct translation diacritic_translations [] =
static bool
init_latin1_iso5426 (RECODE_STEP step,
const struct recode_request *request,
RECODE_CONST_OPTION_LIST before_options _GL_UNUSED_PARAMETER,
RECODE_CONST_OPTION_LIST after_options _GL_UNUSED_PARAMETER)
RECODE_CONST_OPTION_LIST before_options _GL_ATTRIBUTE_MAYBE_UNUSED,
RECODE_CONST_OPTION_LIST after_options _GL_ATTRIBUTE_MAYBE_UNUSED)
{
RECODE_OUTER outer = request->outer;

Expand Down Expand Up @@ -86,6 +86,6 @@ module_latin1_iso5426 (RECODE_OUTER outer)
}

void
delmodule_latin1_iso5426 (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_latin1_iso5426 (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/lat1ltex.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,6 @@ module_latin1_latex (RECODE_OUTER outer)
}

void
delmodule_latin1_latex (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_latin1_latex (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/lat1txte.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,6 @@ module_latin1_texte (RECODE_OUTER outer)
}

void
delmodule_latin1_texte (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_latin1_texte (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/mule.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ module_mule (RECODE_OUTER outer)
}

void
delmodule_mule (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_mule (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
4 changes: 2 additions & 2 deletions src/outer.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
`-----------------------------------------------------------------------*/

_GL_ATTRIBUTE_CONST bool
reversibility (RECODE_SUBTASK subtask _GL_UNUSED_PARAMETER, unsigned code _GL_UNUSED_PARAMETER)
reversibility (RECODE_SUBTASK subtask _GL_ATTRIBUTE_MAYBE_UNUSED, unsigned code _GL_ATTRIBUTE_MAYBE_UNUSED)
{
return false;
}
Expand Down Expand Up @@ -288,7 +288,7 @@ declare_strip_data (RECODE_OUTER outer, struct strip_data *data,
`---------------------------------------------------------------*/

static void
estimate_single_cost (RECODE_OUTER outer _GL_UNUSED_PARAMETER, RECODE_SINGLE single)
estimate_single_cost (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED, RECODE_SINGLE single)
{
int cost;

Expand Down
2 changes: 1 addition & 1 deletion src/permut.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ module_permutations (RECODE_OUTER outer)
}

void
delmodule_permutations (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_permutations (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/quoted.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,6 @@ module_quoted_printable (RECODE_OUTER outer)
}

void
delmodule_quoted_printable (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_quoted_printable (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
4 changes: 2 additions & 2 deletions src/recode.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extern const char *program_name;
#include <stdarg.h>

_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (2, 3) void
recode_error (RECODE_OUTER outer _GL_UNUSED_PARAMETER, const char *format, ...)
recode_error (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED, const char *format, ...)
{
va_list args;

Expand All @@ -47,7 +47,7 @@ recode_error (RECODE_OUTER outer _GL_UNUSED_PARAMETER, const char *format, ...)
}

_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (2, 3) void
recode_perror (RECODE_OUTER outer _GL_UNUSED_PARAMETER, const char *format, ...)
recode_perror (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED, const char *format, ...)
{
int saved_errno = errno;
va_list args;
Expand Down
4 changes: 2 additions & 2 deletions src/rfc1345.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ term_rfc1345 (RECODE_STEP step)
static bool
init_rfc1345 (RECODE_CONST_REQUEST request,
RECODE_STEP step,
RECODE_CONST_OPTION_LIST options _GL_UNUSED_PARAMETER)
RECODE_CONST_OPTION_LIST options _GL_ATTRIBUTE_MAYBE_UNUSED)
{
RECODE_OUTER outer = request->outer;
struct local *local;
Expand Down Expand Up @@ -307,6 +307,6 @@ module_rfc1345 (RECODE_OUTER outer)
}

void
delmodule_rfc1345 (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_rfc1345 (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/testdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,6 @@ module_testdump (RECODE_OUTER outer)
}

void
delmodule_testdump (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_testdump (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/texinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ module_texinfo (RECODE_OUTER outer)
}

void
delmodule_texinfo (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_texinfo (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/ucs.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,6 @@ module_ucs (RECODE_OUTER outer)
}

void
delmodule_ucs (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_ucs (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/utf16.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,6 @@ module_utf16 (RECODE_OUTER outer)
}

void
delmodule_utf16 (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_utf16 (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/utf7.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,6 @@ module_utf7 (RECODE_OUTER outer)
}

void
delmodule_utf7 (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_utf7 (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,6 @@ module_utf8 (RECODE_OUTER outer)
}

void
delmodule_utf8 (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_utf8 (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
2 changes: 1 addition & 1 deletion src/varia.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,6 @@ module_varia (RECODE_OUTER outer)
}

void
delmodule_varia (RECODE_OUTER outer _GL_UNUSED_PARAMETER)
delmodule_varia (RECODE_OUTER outer _GL_ATTRIBUTE_MAYBE_UNUSED)
{
}
Loading

0 comments on commit fd919b4

Please sign in to comment.