diff options
author | Werner Koch <wk@gnupg.org> | 2008-10-17 21:18:46 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-10-17 21:18:46 +0200 |
commit | 0698c5169fca5b7969e6b0fa4de22b693e7fd2e4 (patch) | |
tree | ebfa56dde985a7925e9dc6ea60bda96569106718 /common/util.h | |
parent | Reset the context lock flag after a failed dirmngr start which may happend (diff) | |
download | gnupg2-0698c5169fca5b7969e6b0fa4de22b693e7fd2e4.tar.xz gnupg2-0698c5169fca5b7969e6b0fa4de22b693e7fd2e4.zip |
Use more warning options with modern GCCs.
Other minor changes.
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h index 572fa1a6a..b21e9283d 100644 --- a/common/util.h +++ b/common/util.h @@ -46,6 +46,12 @@ #define asprintf estream_asprintf #define vasprintf estream_vasprintf +/* Due to a bug in mingw32's snprintf related to the 'l' modifier we + better use our snprintf. */ +#ifdef HAVE_W32_SYSTEM +#define snprintf estream_snprintf +#endif + /* GCC attributes. */ #if __GNUC__ >= 4 @@ -260,6 +266,7 @@ int match_multistr (const char *multistr,const char *match); static inline char * ttyname (int fd) { + (void)fd; return NULL; } #endif /* !HAVE_TTYNAME */ |