Home GnuPG
Diffusion GnuPG b89f57fe5db3

mpi: Suppress set-but-unused-variables warnings.
b89f57fe5db3Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

mpi: Suppress set-but-unused-variables warnings.

* include/types.h (GNUPG_GCC_ATTR_UNUSED): Define for gcc >= 3.5.
* mpi/mpih-div.c (mpihelp_divmod_1, mpihelp_mod_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 about set but not used variables. This patch silences them.

Details

Provenance
wernerAuthored on Aug 20 2014, 1:25 PM
Parents
rGecf272823078: Fix strict-alias warnings for rijndael.c
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGb89f57fe5db3: mpi: Suppress set-but-unused-variables warnings. (authored by Werner Koch <wk@gnupg.org>).Aug 20 2014, 1:25 PM