diff options
author | ichizok <gclient.gaap@gmail.com> | 2022-01-07 20:01:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-07 20:01:07 +0000 |
commit | e12406526a24768e6121450112eb2f9f92445ac5 (patch) | |
tree | f1b210d11d09b73638174dfa212eab2a9287e747 /src/if_ruby.c | |
parent | d1f34e64f0e1a9ddaed76623bc40e669f2d09260 (diff) | |
download | vim-git-e12406526a24768e6121450112eb2f9f92445ac5.tar.gz |
patch 8.2.4032: ATTRIBUTE_NORETURN is not neededv8.2.4032
Problem: ATTRIBUTE_NORETURN is not needed.
Solution: Use NORETURN(). (Ozaki Kiichi, closes #9487)
Diffstat (limited to 'src/if_ruby.c')
-rw-r--r-- | src/if_ruby.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/if_ruby.c b/src/if_ruby.c index fcbbf336e..c58c3c5f1 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -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*); |