]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1729: CI is not run with clang 21 v9.1.1729
authorPhilip H. <47042125+pheiduck@users.noreply.github.com>
Tue, 2 Sep 2025 18:11:19 +0000 (20:11 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 2 Sep 2025 18:11:19 +0000 (20:11 +0200)
Problem:  CI is not run with clang 21
Solution: Update CI to v21, fix a few warnings that are uncovered when
          using clang 21 (Philip H)

closes: #18142

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

index c6f32b0804441f0f8540b5ad7ef01374c96e7429..004f4a622e85678188ea75dfc02a2f13724761cd 100644 (file)
@@ -22,7 +22,7 @@ jobs:
     env:
       CC: ${{ matrix.compiler }}
       GCC_VER: 14
-      CLANG_VER: 20
+      CLANG_VER: 21
       TEST: test
       SRCDIR: ./src
       LEAK_CFLAGS: -DEXITFREE
index 2a00a99b0bc0618986a1e842168698b0e97681d9..6e7805d5bba22dc90d8aad31b7eca2b2aae86093 100644 (file)
 # undef SIZEOF_TIME_T
 #endif
 
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__clang__)
 # pragma GCC diagnostic push
 # pragma GCC diagnostic ignored "-Wunused-parameter"
 #endif
+
+#if defined(__clang__) && (__clang_major__ >= 21)
+# pragma GCC diagnostic ignored "-Wdefault-const-init-field-unsafe"
+#endif
+
 #include <ruby.h>
-#ifdef __GNUC__
+#include <ruby/encoding.h>
+
+#if defined(__GNUC__) || defined(__clang__)
 # pragma GCC diagnostic pop
 #endif
-#include <ruby/encoding.h>
 
 // See above.
 #ifdef SIZEOF_TIME_T
index c26e95b92314323242e63788e967f6509f9331f0..18623c88ea4b57584e60a31593a8b365a1e0ecae 100644 (file)
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1729,
 /**/
     1728,
 /**/