diff options
author | Werner Koch <wk@gnupg.org> | 2014-04-08 17:06:02 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-04-08 17:06:17 +0200 |
commit | db85feceaf43ebd6d44421bb14fcb60495804ae0 (patch) | |
tree | 7c9df68b6120c3ac7ec7e2a7b28c82c68665901d /common/mischelp.h | |
parent | gpgconf: Add command --launch. (diff) | |
download | gnupg2-db85feceaf43ebd6d44421bb14fcb60495804ae0.tar.xz gnupg2-db85feceaf43ebd6d44421bb14fcb60495804ae0.zip |
dirmngr: Fix compiler warning.
* common/mischelp.h (JNLIB_GCC_HAVE_PUSH_PRAGMA): New.
* dirmngr/dirmngr.c (handle_tick): Factor time check out to ...
(time_for_housekeeping_p): new.
--
I am not sure whether that y2038 hack is really useful but it might
make me smile in my retirement.
Diffstat (limited to 'common/mischelp.h')
-rw-r--r-- | common/mischelp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/mischelp.h b/common/mischelp.h index e3c4fd198..884e86158 100644 --- a/common/mischelp.h +++ b/common/mischelp.h @@ -52,10 +52,12 @@ time_t timegm (struct tm *tm); #define DIMof(type,member) DIM(((type *)0)->member) +#undef JNLIB_GCC_HAVE_PUSH_PRAGMA #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 ) # define JNLIB_GCC_M_FUNCTION 1 # define JNLIB_GCC_A_NR __attribute__ ((noreturn)) # if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4 ) +# define JNLIB_GCC_HAVE_PUSH_PRAGMA 1 # define JNLIB_GCC_A_PRINTF( f, a ) \ __attribute__ ((format (__gnu_printf__,f,a))) # define JNLIB_GCC_A_NR_PRINTF( f, a ) \ |