From 0698c5169fca5b7969e6b0fa4de22b693e7fd2e4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 17 Oct 2008 19:18:46 +0000 Subject: Use more warning options with modern GCCs. Other minor changes. --- common/util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/util.h') 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 */ -- cgit v1.2.3