comparison src/channel.c @ 13618:ea4f2a8040b4 v8.0.1681

patch 8.0.1681: the format attribute fails with MinGW commit https://github.com/vim/vim/commit/e80757c1545286240d687e9a303cf8eeb3f9a6de Author: Bram Moolenaar <Bram@vim.org> Date: Tue Apr 10 12:42:44 2018 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Tue, 10 Apr 2018 12:45:06 +0200
parents 2a2b668cf24c
children ab89131d30e0
comparison
equal deleted inserted replaced
13617:73b1401bf021 13618:ea4f2a8040b4
177 } 177 }
178 #endif 178 #endif
179 179
180 static void 180 static void
181 ch_error(channel_T *ch, const char *fmt, ...) 181 ch_error(channel_T *ch, const char *fmt, ...)
182 #ifdef __GNUC__ 182 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
183 __attribute__((format(printf, 2, 3))) 183 __attribute__((format(printf, 2, 3)))
184 #endif 184 #endif
185 ; 185 ;
186 186
187 static void 187 static void
188 ch_error(channel_T *ch, const char *fmt, ...) 188 ch_error(channel_T *ch, const char *fmt, ...)