diff options
author | Werner Koch <wk@gnupg.org> | 2013-08-30 17:56:35 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-09-04 11:25:06 +0200 |
commit | 8698530b2f9ef95542f1dd550961de7af86cc256 (patch) | |
tree | 4f389d0931e7ee327895102ba2e5128434167300 /src/g10lib.h | |
parent | b28b1f732e1b4f9c62a9de87c22c6bb0d3f8fdb8 (diff) | |
download | libgcrypt-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 'src/g10lib.h')
-rw-r--r-- | src/g10lib.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/g10lib.h b/src/g10lib.h index 31131a54..2d84dd3a 100644 --- a/src/g10lib.h +++ b/src/g10lib.h @@ -67,6 +67,13 @@ #endif +#if __GNUC__ > 2 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 5 ) +#define GCC_ATTR_UNUSED __attribute__ ((unused)) +#else +#define GCC_ATTR_UNUSED +#endif + + /* Gettext macros. */ #define _(a) _gcry_gettext(a) |