forked from aniani/vim
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:
@@ -179,8 +179,8 @@ ch_log(channel_T *ch, const char *fmt, ...)
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
ch_error(channel_T *ch, const char *fmt, ...)
|
ch_error(channel_T *ch, const char *fmt, ...)
|
||||||
#ifdef __GNUC__
|
#ifdef USE_PRINTF_FORMAT_ATTRIBUTE
|
||||||
__attribute__((format(printf, 2, 3)))
|
__attribute__((format(printf, 2, 3)))
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ int
|
|||||||
_RTLENTRYF
|
_RTLENTRYF
|
||||||
# endif
|
# endif
|
||||||
vim_snprintf_add(char *, size_t, char *, ...)
|
vim_snprintf_add(char *, size_t, char *, ...)
|
||||||
#ifdef __GNUC__
|
#ifdef USE_PRINTF_FORMAT_ATTRIBUTE
|
||||||
__attribute__((format(printf, 3, 4)))
|
__attribute__((format(printf, 3, 4)))
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
@@ -130,7 +130,7 @@ int
|
|||||||
_RTLENTRYF
|
_RTLENTRYF
|
||||||
# endif
|
# endif
|
||||||
vim_snprintf(char *, size_t, char *, ...)
|
vim_snprintf(char *, size_t, char *, ...)
|
||||||
#ifdef __GNUC__
|
#ifdef USE_PRINTF_FORMAT_ATTRIBUTE
|
||||||
__attribute__((format(printf, 3, 4)))
|
__attribute__((format(printf, 3, 4)))
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
@@ -223,7 +223,7 @@ void qsort(void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void
|
|||||||
|
|
||||||
/* Not generated automatically, to add extra attribute. */
|
/* Not generated automatically, to add extra attribute. */
|
||||||
void ch_log(channel_T *ch, const char *fmt, ...)
|
void ch_log(channel_T *ch, const char *fmt, ...)
|
||||||
#ifdef __GNUC__
|
#ifdef USE_PRINTF_FORMAT_ATTRIBUTE
|
||||||
__attribute__((format(printf, 2, 3)))
|
__attribute__((format(printf, 2, 3)))
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -762,6 +762,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1681,
|
||||||
/**/
|
/**/
|
||||||
1680,
|
1680,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user