diff --git a/src/version.c b/src/version.c index 07e46ae95..f7599c0d0 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4347, /**/ 4346, /**/ diff --git a/src/vim.h b/src/vim.h index 166edf579..4f95bb45f 100644 --- a/src/vim.h +++ b/src/vim.h @@ -245,12 +245,19 @@ // Mark unused function arguments with UNUSED, so that gcc -Wunused-parameter // can be used to check for mistakes. -#if defined(HAVE_ATTRIBUTE_UNUSED) || defined(__MINGW32__) -# if !defined(UNUSED) +#ifndef UNUSED +# if defined(HAVE_ATTRIBUTE_UNUSED) || defined(__MINGW32__) # define UNUSED __attribute__((unused)) +# else +# if defined __has_attribute +# if __has_attribute(unused) +# define UNUSED __attribute__((unused)) +# endif +# endif +# endif +# ifndef UNUSED +# define UNUSED # endif -#else -# define UNUSED #endif // Used to check for "sun", "__sun" is used by newer compilers.