diff options
author | Pádraig Brady <P@draigBrady.com> | 2009-09-23 12:49:42 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2009-09-23 14:32:07 +0100 |
commit | ade8dd2096e1898edefadf2314d4e1ec654adda5 (patch) | |
tree | 0554afe2be9fce5c52b37e03c974f19818c2d8f6 | |
parent | 0cce6908503c7cda6bca71340accebfdc03ebec4 (diff) | |
download | coreutils-ade8dd2096e1898edefadf2314d4e1ec654adda5.tar.xz |
maint: expr: avoid compiler warnings without GMP
* src/expr.c (mpz_clear, mpz_get_str, mpz_out_str)
[!HAVE_GMP]: Reference unused arguments.
-rw-r--r-- | src/expr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index aab09a1f1..6e72a44d0 100644 --- a/src/expr.c +++ b/src/expr.c @@ -55,7 +55,7 @@ static void integer_overflow (char) ATTRIBUTE_NORETURN; #else /* Approximate gmp.h well enough for expr.c's purposes. */ typedef intmax_t mpz_t[1]; -static void mpz_clear (mpz_t z) {} +static void mpz_clear (mpz_t z) { (void) z; } static void mpz_init_set_ui (mpz_t z, unsigned long int i) { z[0] = i; } static int mpz_init_set_str (mpz_t z, char *s, int base) @@ -116,6 +116,7 @@ mpz_tdiv_r (mpz_t r, mpz_t a0, mpz_t b0) static char * mpz_get_str (char const *str, int base, mpz_t z) { + (void) str; (void) base; char buf[INT_BUFSIZE_BOUND (intmax_t)]; return xstrdup (imaxtostr (z[0], buf)); } @@ -137,6 +138,7 @@ mpz_get_ui (mpz_t z) static int mpz_out_str (FILE *stream, int base, mpz_t z) { + (void) base; char buf[INT_BUFSIZE_BOUND (intmax_t)]; return fputs (imaxtostr (z[0], buf), stream) != EOF; } |