diff src/if_ruby.c @ 27006:686fa1164724 v8.2.4032

patch 8.2.4032: ATTRIBUTE_NORETURN is not needed Commit: https://github.com/vim/vim/commit/e12406526a24768e6121450112eb2f9f92445ac5 Author: ichizok <gclient.gaap@gmail.com> Date: Fri Jan 7 20:01:07 2022 +0000 patch 8.2.4032: ATTRIBUTE_NORETURN is not needed Problem: ATTRIBUTE_NORETURN is not needed. Solution: Use NORETURN(). (Ozaki Kiichi, closes https://github.com/vim/vim/issues/9487)
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Jan 2022 21:15:03 +0100
parents d02d40f0261c
children 41a940219183
line wrap: on
line diff
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -502,7 +502,11 @@ static int (*dll_rb_w32_snprintf)(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*);