From ca664391b5f37d1e77578cc372715f33915d1da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Mon, 23 Feb 2026 11:42:30 +0100 Subject: [PATCH] fix: work around GCC 12 false positive when building watcher on i386 GCC 12 on Debian Bookworm i386 emits a spurious -Werror=use-after-free in libstdc++ basic_string.h when compiling e-dant/watcher, causing Docker builds to fail. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7ee1656d3c..b0ae116c69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -93,7 +93,8 @@ RUN --mount=type=secret,id=github-token \ sed 's/"//g' | \ xargs curl -L | \ tar xz --strip-components 1 && \ - cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && \ + # -Wno-error=use-after-free: GCC 12 on Bookworm i386 emits a spurious warning in libstdc++ basic_string.h + cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Wno-error=use-after-free" && \ cmake --build build && \ cmake --install build && \ ldconfig