0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

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 <github@tuxproject.de>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Cthulhux
2025-08-25 23:45:13 +02:00
committed by Christian Brabandt
parent c6a0f42cdb
commit f32d204e14
2 changed files with 9 additions and 3 deletions

View File

@@ -107,10 +107,14 @@
# undef SIZEOF_TIME_T # undef SIZEOF_TIME_T
#endif #endif
#pragma GCC diagnostic push #ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wunused-parameter" # pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-parameter"
#endif
#include <ruby.h> #include <ruby.h>
#pragma GCC diagnostic pop #ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
#include <ruby/encoding.h> #include <ruby/encoding.h>
// See above. // See above.

View File

@@ -724,6 +724,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1686,
/**/ /**/
1685, 1685,
/**/ /**/