0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4032: ATTRIBUTE_NORETURN is not needed

Problem:    ATTRIBUTE_NORETURN is not needed.
Solution:   Use NORETURN(). (Ozaki Kiichi, closes #9487)
This commit is contained in:
ichizok
2022-01-07 20:01:07 +00:00
committed by Bram Moolenaar
parent d1f34e64f0
commit e12406526a
3 changed files with 10 additions and 6 deletions

View File

@@ -502,7 +502,11 @@ static int (*dll_rb_w32_snprintf)(char*, size_t, const char*, ...);
# endif
# endif
# if RUBY_VERSION >= 31
static void (*dll_rb_unexpected_type) (VALUE, int) ATTRIBUTE_NORETURN;
# ifdef _MSC_VER
static void (*dll_rb_unexpected_type) (VALUE, int);
# else
NORETURN(static void (*dll_rb_unexpected_type) (VALUE, int));
# endif
# endif
# if RUBY_VERSION >= 18
static char * (*dll_rb_string_value_ptr) (volatile VALUE*);