Home GnuPG
Diffusion GnuPG f59455d054a7

dirmngr: Replace no-strict-overflow pragma by wrapv pragma.

Description

dirmngr: Replace no-strict-overflow pragma by wrapv pragma.

* dirmngr/dirmngr.c (time_for_housekeeping_p): Build with --fwrapv.
Replace protecting macro.

I once replaced all JNLIB macros by GPGRT macros. However, I missed
to get this right for the push pragma test and used
GPGRT_GCC_HAVE_PUSH_PRAGMA
instead of the correct
GPGRT_HAVE_PRAGMA_GCC_PUSH
Now after fixing this it turned out that no-strict-overflow is not
anymore supported as oprimize pragma and thus I replaced that too
according to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58454 .

Tested with 32 bit Windows but the real test will be in 2038.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 27 2019, 8:15 PM
Parents
rG61f41cdce5b6: gpg: Move a keydb function to another file.
Branches
Unknown
Tags
Unknown