From f8e0b39760d9b07299e019d22f2d5f6ba539b771 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Mon, 18 May 2026 21:13:38 +0200 Subject: [PATCH 1/2] cygcheck: remove an unused variable causing a build error with GCC 16 Since gcc 16 this triggers -Werror=unused-but-set-variable= Remove the unused variable. --- winsup/utils/mingw/cygcheck.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/winsup/utils/mingw/cygcheck.cc b/winsup/utils/mingw/cygcheck.cc index 1637683c26..22c7d181ae 100644 --- a/winsup/utils/mingw/cygcheck.cc +++ b/winsup/utils/mingw/cygcheck.cc @@ -1706,7 +1706,6 @@ dump_sysinfo () else { char sep = strchr (s, ';') ? ';' : ':'; - int count_path_items = 0; while (1) { for (e = s; *e && *e != sep; e++); @@ -1714,7 +1713,6 @@ dump_sysinfo () printf ("\t%.*s\n", (int) (e - s), s); else puts ("\t."); - count_path_items++; if (!*e) break; s = e + 1; From 55364b401165f6e9419d5d5c2ec436e45e0cbf07 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Mon, 18 May 2026 21:32:41 +0200 Subject: [PATCH 2/2] CI: add missing libzstd-devel See 1387ea9f984d5a7aa096a6 - our binutils now pulls in zstd, and cygwin will only consider linking to it if it is present. Install it so it is found at configure time. --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5eeac8e9b8..1057c35bea 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -18,7 +18,7 @@ jobs: with: msystem: MSYS update: true - install: msys2-devel base-devel autotools cocom diffutils gcc gettext-devel libiconv-devel make mingw-w64-cross-crt mingw-w64-cross-gcc mingw-w64-cross-zlib perl zlib-devel xmlto docbook-xsl + install: msys2-devel base-devel autotools cocom diffutils gcc gettext-devel libiconv-devel make mingw-w64-cross-crt mingw-w64-cross-gcc mingw-w64-cross-zlib perl zlib-devel xmlto docbook-xsl libzstd-devel - name: Build shell: msys2 {0}