From: Philip H. <47042125+pheiduck@users.noreply.github.com> Date: Tue, 2 Sep 2025 18:11:19 +0000 (+0200) Subject: patch 9.1.1729: CI is not run with clang 21 X-Git-Tag: v9.1.1729^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccddb555aabda4e607dca2367c8b33ec3312c332;p=thirdparty%2Fvim.git patch 9.1.1729: CI is not run with clang 21 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 --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6f32b0804..004f4a622e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/src/if_ruby.c b/src/if_ruby.c index 2a00a99b0b..6e7805d5bb 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -107,15 +107,21 @@ # 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 -#ifdef __GNUC__ +#include + +#if defined(__GNUC__) || defined(__clang__) # pragma GCC diagnostic pop #endif -#include // See above. #ifdef SIZEOF_TIME_T diff --git a/src/version.c b/src/version.c index c26e95b923..18623c88ea 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 */ +/**/ + 1729, /**/ 1728, /**/