diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-10 12:42:44 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-10 12:42:44 +0200 |
commit | e80757c1545286240d687e9a303cf8eeb3f9a6de (patch) | |
tree | d7815e52f08aa2e5e58faeee86c1d0f8b63ded80 /src/channel.c | |
parent | 756ef113d14428e598274f87672d7f0e34ff9781 (diff) |
patch 8.0.1681: the format attribute fails with MinGWv8.0.1681
Problem: The format attribute fails with MinGW. (John Marriott)
Solution: Don't use the format attribute with MinGW.
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channel.c b/src/channel.c index 0f2e52b97b..88c53b7e0d 100644 --- a/src/channel.c +++ b/src/channel.c @@ -179,8 +179,8 @@ ch_log(channel_T *ch, const char *fmt, ...) static void ch_error(channel_T *ch, const char *fmt, ...) -#ifdef __GNUC__ -__attribute__((format(printf, 2, 3))) +#ifdef USE_PRINTF_FORMAT_ATTRIBUTE + __attribute__((format(printf, 2, 3))) #endif ; |