comparison src/proto.h @ 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 e76499e85744
children 487d7bda80ea
comparison
equal deleted inserted replaced
13617:73b1401bf021 13618:ea4f2a8040b4
118 int 118 int
119 # ifdef __BORLANDC__ 119 # ifdef __BORLANDC__
120 _RTLENTRYF 120 _RTLENTRYF
121 # endif 121 # endif
122 vim_snprintf_add(char *, size_t, char *, ...) 122 vim_snprintf_add(char *, size_t, char *, ...)
123 #ifdef __GNUC__ 123 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
124 __attribute__((format(printf, 3, 4))) 124 __attribute__((format(printf, 3, 4)))
125 #endif 125 #endif
126 ; 126 ;
127 127
128 int 128 int
129 # ifdef __BORLANDC__ 129 # ifdef __BORLANDC__
130 _RTLENTRYF 130 _RTLENTRYF
131 # endif 131 # endif
132 vim_snprintf(char *, size_t, char *, ...) 132 vim_snprintf(char *, size_t, char *, ...)
133 #ifdef __GNUC__ 133 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
134 __attribute__((format(printf, 3, 4))) 134 __attribute__((format(printf, 3, 4)))
135 #endif 135 #endif
136 ; 136 ;
137 137
138 int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap); 138 int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap);
221 # ifdef FEAT_JOB_CHANNEL 221 # ifdef FEAT_JOB_CHANNEL
222 # include "channel.pro" 222 # include "channel.pro"
223 223
224 /* Not generated automatically, to add extra attribute. */ 224 /* Not generated automatically, to add extra attribute. */
225 void ch_log(channel_T *ch, const char *fmt, ...) 225 void ch_log(channel_T *ch, const char *fmt, ...)
226 #ifdef __GNUC__ 226 #ifdef USE_PRINTF_FORMAT_ATTRIBUTE
227 __attribute__((format(printf, 2, 3))) 227 __attribute__((format(printf, 2, 3)))
228 #endif 228 #endif
229 ; 229 ;
230 230
231 # endif 231 # endif