patch 9.1.1382: if_ruby: unused compiler warnings from ruby internals
Commit:
https://github.com/vim/vim/commit/411730e277c408f89c82ae7dbb1ebfa71ec0f4e5
Author: Philip H. <[email protected]>
Date: Sun May 11 15:01:31 2025 +0200
patch 9.1.1382: if_ruby: unused compiler warnings from ruby internals
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. <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 52f54f3df..b769adfa2 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -107,7 +107,10 @@
# 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.
diff --git a/src/version.c b/src/version.c
index 449a358b6..816ce5c15 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1382,
/**/
1381,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uE6WF-0041DX-7h%40256bit.org.