From bd6ed09e39bc38e11b500da24c131ee6533ad5d6 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Wed, 18 Feb 2026 21:54:25 +0000 Subject: [PATCH] ci: add -Dno-discarded-qualifiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ...whenever --force-fallback-for=wlroots is used to avoid error ../subprojects/wlroots/xcursor/xcursor.c: In function ‘xcursor_next_path’: ../subprojects/wlroots/xcursor/xcursor.c:605:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 605 | char *colon = strchr(path, ':'); | ^~~~~~ --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 664e9ead..35a375b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -251,6 +251,7 @@ jobs: cd "$GITHUB_WORKSPACE" export CC=gcc meson setup build-gcc-leak -Dxwayland=enabled -Db_sanitize=address,undefined \ + -Dno-discarded-qualifiers \ --werror --force-fallback-for=wlroots meson compile -C build-gcc-leak LABWC_LEAK_TEST=1 scripts/ci/smoke-test.sh build-gcc-leak @@ -263,6 +264,7 @@ jobs: cd "$GITHUB_WORKSPACE" export CC=clang meson setup build-clang-leak -Dxwayland=enabled -Db_sanitize=address,undefined \ + -Dno-discarded-qualifiers \ --werror --force-fallback-for=wlroots meson compile -C build-clang-leak LABWC_LEAK_TEST=1 scripts/ci/smoke-test.sh build-clang-leak