]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1382: if_ruby: unused compiler warnings from ruby internals v9.1.1382
authorPhilip H. <47042125+pheiduck@users.noreply.github.com>
Sun, 11 May 2025 13:01:31 +0000 (15:01 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 11 May 2025 13:01:31 +0000 (15:01 +0200)
Problem:  if_ruby: unused compiler warnings from ruby internals
Solution: disable -Wunused-parameter for if_ruby internal code
          (Philip H.)

closes: #17297

Signed-off-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/if_ruby.c
src/version.c

index 52f54f3df6e217b603abebd0bcd4fb0ca956443d..b769adfa2f41a752a64bcd3bb0870fdfed83aed0 100644 (file)
 # undef SIZEOF_TIME_T
 #endif
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-parameter"
 #include <ruby.h>
+#pragma GCC diagnostic pop
 #include <ruby/encoding.h>
 
 // See above.
index 449a358b6b4681358190a890ea9eb331c6ec9560..816ce5c15aaceb3148d60f7bf0df9115debaf4c6 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1382,
 /**/
     1381,
 /**/