patch 9.1.1686: if_ruby: unknown pragma when not using gcc

Commit: 
https://github.com/vim/vim/commit/f32d204e14262f682e5aa59deea73f339c1d5064
Author: Cthulhux <git...@tuxproject.de>
Date:   Mon Aug 25 23:45:13 2025 +0200

    patch 9.1.1686: if_ruby: unknown pragma when not using gcc
    
    Problem:  if_ruby: unknown pragma when not using gcc
    Solution: only use GCC pragma, when using GCC
              (Cthulhux)
    
    fixes: #18109
    closes: #18110
    
    Signed-off-by: Cthulhux <git...@tuxproject.de>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/if_ruby.c b/src/if_ruby.c
index b769adfa2..2a00a99b0 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -107,10 +107,14 @@
 # undef SIZEOF_TIME_T
 #endif
 
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wunused-parameter"
+#ifdef __GNUC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wunused-parameter"
+#endif
 #include <ruby.h>
-#pragma GCC diagnostic pop
+#ifdef __GNUC__
+# pragma GCC diagnostic pop
+#endif
 #include <ruby/encoding.h>
 
 // See above.
diff --git a/src/version.c b/src/version.c
index 7d265ab64..4f47ec268 100644
--- a/src/version.c
+++ b/src/version.c
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1686,
 /**/
     1685,
 /**/

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1uqfEU-0021sW-IY%40256bit.org.

Raspunde prin e-mail lui