summaryrefslogtreecommitdiff
path: root/mpi/mpih-div.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-08-30 17:56:35 +0200
committerWerner Koch <wk@gnupg.org>2013-09-04 11:25:06 +0200
commit8698530b2f9ef95542f1dd550961de7af86cc256 (patch)
tree4f389d0931e7ee327895102ba2e5128434167300 /mpi/mpih-div.c
parentb28b1f732e1b4f9c62a9de87c22c6bb0d3f8fdb8 (diff)
downloadlibgcrypt-8698530b2f9ef95542f1dd550961de7af86cc256.tar.gz
mpi: Suppress newer gcc warnings.
* src/g10lib.h (GCC_ATTR_UNUSED): Define for gcc >= 3.5. * mpi/mpih-div.c (_gcry_mpih_mod_1, _gcry_mpih_divmod_1): Mark dummy as unused. * mpi/mpi-internal.h (UDIV_QRNND_PREINV): Mark _ql as unused. -- Due to the use of macros and longlong.h, we use variables which are only used by some architectures. At least gcc 4.7.2 prints new warnings abot set but not used variables. This patch silences them. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'mpi/mpih-div.c')
-rw-r--r--mpi/mpih-div.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpi/mpih-div.c b/mpi/mpih-div.c
index b33dcbfa..0bddd22e 100644
--- a/mpi/mpih-div.c
+++ b/mpi/mpih-div.c
@@ -48,7 +48,7 @@ _gcry_mpih_mod_1(mpi_ptr_t dividend_ptr, mpi_size_t dividend_size,
{
mpi_size_t i;
mpi_limb_t n1, n0, r;
- int dummy;
+ int dummy GCC_ATTR_UNUSED;
/* Botch: Should this be handled at all? Rely on callers? */
if( !dividend_size )
@@ -396,7 +396,7 @@ _gcry_mpih_divmod_1( mpi_ptr_t quot_ptr,
{
mpi_size_t i;
mpi_limb_t n1, n0, r;
- int dummy;
+ int dummy GCC_ATTR_UNUSED;
if( !dividend_size )
return 0;