From db1ee0a836f4938dc14014c6341fcb11ef66e929 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 16 Aug 2012 14:08:47 -0700 Subject: Suppress -Wunused-but-set warnings in GMP code. --- stdlib/divmod_1.c | 4 ++-- stdlib/gmp-impl.h | 5 +++-- stdlib/mod_1.c | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'stdlib') diff --git a/stdlib/divmod_1.c b/stdlib/divmod_1.c index b11fd7bf8c..4e6966bc91 100644 --- a/stdlib/divmod_1.c +++ b/stdlib/divmod_1.c @@ -6,7 +6,7 @@ QUOT_PTR and DIVIDEND_PTR might point to the same limb. -Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. +Copyright (C) 1991-2012 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -54,7 +54,7 @@ mpn_divmod_1 (quot_ptr, dividend_ptr, dividend_size, divisor_limb) { mp_size_t i; mp_limb_t n1, n0, r; - mp_limb_t dummy; + mp_limb_t dummy __attribute__ ((unused)); /* ??? Should this be handled at all? Rely on callers? */ if (dividend_size == 0) diff --git a/stdlib/gmp-impl.h b/stdlib/gmp-impl.h index f6454ee2d0..7e94624859 100644 --- a/stdlib/gmp-impl.h +++ b/stdlib/gmp-impl.h @@ -1,6 +1,6 @@ /* Include file for internal GNU MP types and definitions. -Copyright (C) 1991, 1993, 1994, 1995, 1996, 2011 Free Software Foundation, Inc. +Copyright (C) 1991-2012 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -216,7 +216,8 @@ extern mp_size_t __gmp_default_fp_limb_precision; has to be set. Put the quotient in Q and the remainder in R. */ #define udiv_qrnnd_preinv(q, r, nh, nl, d, di) \ do { \ - mp_limb_t _q, _ql, _r; \ + mp_limb_t _ql __attribute__ ((unused)); \ + mp_limb_t _q, _r; \ mp_limb_t _xh, _xl; \ umul_ppmm (_q, _ql, (nh), (di)); \ _q += (nh); /* DI is 2**BITS_PER_MP_LIMB too small */\ diff --git a/stdlib/mod_1.c b/stdlib/mod_1.c index 00f338baf1..d325a931ad 100644 --- a/stdlib/mod_1.c +++ b/stdlib/mod_1.c @@ -3,7 +3,7 @@ Return the single-limb remainder. There are no constraints on the value of the divisor. -Copyright (C) 1991, 1993, 1994, Free Software Foundation, Inc. +Copyright (C) 1991-2012 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -49,7 +49,7 @@ mpn_mod_1 (dividend_ptr, dividend_size, divisor_limb) { mp_size_t i; mp_limb_t n1, n0, r; - mp_limb_t dummy; + mp_limb_t dummy __attribute__ ((unused)); /* Botch: Should this be handled at all? Rely on callers? */ if (dividend_size == 0) -- cgit 1.4.1