#if ! HAVE_SETGROUPS
/* At least Interix lacks supplemental group support. */
static int
-setgroups (size_t size, gid_t const *list _GL_UNUSED)
+setgroups (size_t size, MAYBE_UNUSED gid_t const *list)
{
if (size == 0)
{
void
output_crc (char const *file, int binary_file, void const *digest,
- bool tagged, unsigned char delim, bool args _GL_UNUSED,
- uintmax_t length _GL_UNUSED)
+ bool tagged, unsigned char delim, bool args, uintmax_t length)
{
char length_buf[INT_BUFSIZE_BOUND (uintmax_t)];
printf ("%u %s", *(unsigned int *)digest, umaxtostr (length, length_buf));
extern void
output_crc (char const *file, int binary_file, void const *digest,
- bool tagged, unsigned char delim, bool args _GL_UNUSED,
- uintmax_t length _GL_UNUSED)
+ bool tagged, unsigned char delim, bool args, uintmax_t length)
_GL_ATTRIBUTE_NONNULL ((3));
extern bool
#if USE_XATTR
ATTRIBUTE_FORMAT ((printf, 2, 3))
static void
-copy_attr_error (struct error_context *ctx _GL_UNUSED,
+copy_attr_error (MAYBE_UNUSED struct error_context *ctx,
char const *fmt, ...)
{
if (!errno_unsupported (errno))
ATTRIBUTE_FORMAT ((printf, 2, 3))
static void
-copy_attr_allerror (struct error_context *ctx _GL_UNUSED,
+copy_attr_allerror (MAYBE_UNUSED struct error_context *ctx,
char const *fmt, ...)
{
int err = errno;
}
static char const *
-copy_attr_quote (struct error_context *ctx _GL_UNUSED, char const *str)
+copy_attr_quote (MAYBE_UNUSED struct error_context *ctx, char const *str)
{
return quoteaf (str);
}
static void
-copy_attr_free (struct error_context *ctx _GL_UNUSED,
- char const *str _GL_UNUSED)
+copy_attr_free (MAYBE_UNUSED struct error_context *ctx,
+ MAYBE_UNUSED char const *str)
{
}
#else /* USE_XATTR */
static bool
-copy_attr (char const *src_path _GL_UNUSED,
- int src_fd _GL_UNUSED,
- char const *dst_path _GL_UNUSED,
- int dst_fd _GL_UNUSED,
- struct cp_options const *x _GL_UNUSED)
+copy_attr (MAYBE_UNUSED char const *src_path,
+ MAYBE_UNUSED int src_fd,
+ MAYBE_UNUSED char const *dst_path,
+ MAYBE_UNUSED int dst_fd,
+ MAYBE_UNUSED struct cp_options const *x)
{
return true;
}
#if !HASH_ALGO_SUM
static void
output_file (char const *file, int binary_file, void const *digest,
- bool tagged, unsigned char delim, bool args _GL_UNUSED,
- uintmax_t length _GL_UNUSED);
+ bool tagged, unsigned char delim, bool args,
+ uintmax_t length);
#endif
/* True if any of the files read were the standard input. */
static bool
digest_file (char const *filename, int *binary, unsigned char *bin_result,
- bool *missing, uintmax_t* length _GL_UNUSED)
+ bool *missing, MAYBE_UNUSED uintmax_t *length)
{
FILE *fp;
int err;
#if !HASH_ALGO_SUM
static void
output_file (char const *file, int binary_file, void const *digest,
- bool tagged, unsigned char delim, bool args _GL_UNUSED,
- uintmax_t length _GL_UNUSED)
+ bool tagged, unsigned char delim, MAYBE_UNUSED bool args,
+ MAYBE_UNUSED uintmax_t length)
{
unsigned char const *bin_buffer = digest;
{
for (;;)
{
- uintmax_t q1, q0, hi, lo _GL_UNUSED;
+ uintmax_t q1, q0, hi;
+ MAYBE_UNUSED uintmax_t lo;
q0 = t0 * primes_dtab[i].binv;
umul_ppmm (hi, lo, q0, p);
_q0 = (u0) * _di; \
if ((u1) >= (d)) \
{ \
- uintmax_t _p1, _p0 _GL_UNUSED; \
+ uintmax_t _p1; \
+ MAYBE_UNUSED intmax_t _p0; \
umul_ppmm (_p1, _p0, _q0, d); \
(q1) = ((u1) - _p1) * _di; \
(q0) = _q0; \
/* x B (mod n). */
#define redcify(r_prim, r, n) \
do { \
- uintmax_t _redcify_q _GL_UNUSED; \
+ MAYBE_UNUSED uintmax_t _redcify_q; \
udiv_qrnnd (_redcify_q, r_prim, r, 0, n); \
} while (0)
static inline uintmax_t
mulredc (uintmax_t a, uintmax_t b, uintmax_t m, uintmax_t mi)
{
- uintmax_t rh, rl, q, th, tl _GL_UNUSED, xh;
+ uintmax_t rh, rl, q, th, xh;
+ MAYBE_UNUSED uintmax_t tl;
umul_ppmm (rh, rl, a, b);
q = rl * mi;
uintmax_t a1, uintmax_t a0, uintmax_t b1, uintmax_t b0,
uintmax_t m1, uintmax_t m0, uintmax_t mi)
{
- uintmax_t r1, r0, q, p1, p0 _GL_UNUSED, t1, t0, s1, s0;
+ uintmax_t r1, r0, q, p1, t1, t0, s1, s0;
+ MAYBE_UNUSED uintmax_t p0;
mi = -mi;
assert ((a1 >> (W_TYPE_SIZE - 1)) == 0);
assert ((b1 >> (W_TYPE_SIZE - 1)) == 0);
a_prim = s0 % n;
else
{
- uintmax_t dummy _GL_UNUSED;
+ MAYBE_UNUSED uintmax_t dummy;
udiv_qrnnd (dummy, a_prim, s1, s0, n);
}
}
/* Do we need more than one iteration? */
for (;;)
{
- uintmax_t r _GL_UNUSED;
+ MAYBE_UNUSED uintmax_t r;
uintmax_t q, y;
udiv_qrnnd (q, r, nh, nl, x);
y = (x + q) / 2;
}
#else
static bool
-has_capability (char const *name _GL_UNUSED)
+has_capability (MAYBE_UNUSED char const *name)
{
errno = ENOTSUP;
return false;
/* Define the print functions. */
-#define PRINT_FIELDS(N, T, FMT_STRING, ACTION) \
+#define PRINT_FIELDS(N, T, FMT_STRING_DECL, ACTION) \
static void \
N (size_t fields, size_t blank, void const *block, \
- char const *FMT_STRING, int width, int pad) \
+ FMT_STRING_DECL, int width, int pad) \
{ \
T const *p = block; \
uintmax_t i; \
}
#define PRINT_TYPE(N, T) \
- PRINT_FIELDS (N, T, fmt_string, xprintf (fmt_string, adjusted_width, x))
+ PRINT_FIELDS (N, T, char const *fmt_string, \
+ xprintf (fmt_string, adjusted_width, x))
#define PRINT_FLOATTYPE(N, T, FTOASTR, BUFSIZE) \
- PRINT_FIELDS (N, T, fmt_string _GL_UNUSED, \
+ PRINT_FIELDS (N, T, MAYBE_UNUSED char const *fmt_string, \
char buf[BUFSIZE]; \
FTOASTR (buf, sizeof buf, 0, 0, x); \
xprintf ("%*s", adjusted_width, buf))
static void
print_named_ascii (size_t fields, size_t blank, void const *block,
- char const *unused_fmt_string _GL_UNUSED,
+ MAYBE_UNUSED char const *unused_fmt_string,
int width, int pad)
{
unsigned char const *p = block;
static void
print_ascii (size_t fields, size_t blank, void const *block,
- char const *unused_fmt_string _GL_UNUSED, int width,
+ MAYBE_UNUSED char const *unused_fmt_string, int width,
int pad)
{
unsigned char const *p = block;
}
static void
-format_address_none (uintmax_t address _GL_UNUSED,
- char c _GL_UNUSED)
+format_address_none (MAYBE_UNUSED uintmax_t address,
+ MAYBE_UNUSED char c)
{
}
/* Print statfs info. Return zero upon success, nonzero upon failure. */
NODISCARD
static bool
-print_statfs (char *pformat, size_t prefix_len, char mod _GL_UNUSED, char m,
+print_statfs (char *pformat, size_t prefix_len, MAYBE_UNUSED char mod, char m,
int fd, char const *filename,
void const *data)
{
int argi = 0;
int opti = 1;
bool require_set_attr;
- bool speed_was_set _GL_UNUSED;
+ MAYBE_UNUSED bool speed_was_set;
bool verbose_output;
bool recoverable_output;
bool noargs = true;
void
output_bsd (char const *file, int binary_file, void const *digest,
- bool tagged, unsigned char delim, bool args _GL_UNUSED,
- uintmax_t length _GL_UNUSED)
+ bool tagged, unsigned char delim, bool args,
+ uintmax_t length)
{
char hbuf[LONGEST_HUMAN_READABLE + 1];
void
output_sysv (char const *file, int binary_file, void const *digest,
- bool tagged, unsigned char delim, bool args _GL_UNUSED,
- uintmax_t length _GL_UNUSED)
+ bool tagged, unsigned char delim, bool args,
+ uintmax_t length)
{
char hbuf[LONGEST_HUMAN_READABLE + 1];
extern void
output_bsd (char const *file, int binary_file, void const *digest,
- bool tagged, unsigned char delim, bool args _GL_UNUSED,
- uintmax_t length _GL_UNUSED);
+ bool tagged, unsigned char delim, bool args,
+ uintmax_t length);
extern void
output_sysv (char const *file, int binary_file, void const *digest,
- bool tagged, unsigned char delim, bool args _GL_UNUSED,
- uintmax_t length _GL_UNUSED);
+ bool tagged, unsigned char delim, bool args,
+ uintmax_t length);
#else
static void
-record_or_unlink_tempfile (char const *fn, FILE *fp _GL_UNUSED)
+record_or_unlink_tempfile (char const *fn, MAYBE_UNUSED FILE *fp)
{
unlink (fn);
}
}
static bool
-count_items (struct item *unused _GL_UNUSED)
+count_items (MAYBE_UNUSED struct item *unused)
{
n_strings++;
return false;