]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1686: if_ruby: unknown pragma when not using gcc v9.1.1686
authorCthulhux <github@tuxproject.de>
Mon, 25 Aug 2025 21:45:13 +0000 (23:45 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 25 Aug 2025 21:45:13 +0000 (23:45 +0200)
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 <github@tuxproject.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/if_ruby.c
src/version.c

index b769adfa2f41a752a64bcd3bb0870fdfed83aed0..2a00a99b0bc0618986a1e842168698b0e97681d9 100644 (file)
 # 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.
index 7d265ab64123206c4ce9f375a132bf2223328b25..4f47ec2688632efdd3d9ad0ce5a506ddc859023f 100644 (file)
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1686,
 /**/
     1685,
 /**/