0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

patch 8.0.1681: the format attribute fails with MinGW

Problem:    The format attribute fails with MinGW. (John Marriott)
Solution:   Don't use the format attribute with MinGW.
This commit is contained in:
Bram Moolenaar
2018-04-10 12:42:44 +02:00
parent 756ef113d1
commit e80757c154
4 changed files with 11 additions and 5 deletions

View File

@@ -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
;