From 1b742cfbbd793c5d270b3d48b46b12d90056c5ff Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Thu, 22 Oct 2026 15:16:47 +0100 Subject: [PATCH] ci: Fix OpenBSD job `vmactions/openbsd-vm` now provides OpenBSD 8.0 by default with Clang 22.1.6, which triggers `-Wc2y-extensions` on `__COUNTER__`. Disable the warning temporarily until the fix becomes available in Clang. See upstream LLVM items: - https://github.com/llvm/llvm-project/issues/196557 - https://github.com/llvm/llvm-project/pull/196689 - https://github.com/llvm/llvm-project/pull/218669 --- ci/configs/openbsd.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/configs/openbsd.bash b/ci/configs/openbsd.bash index 944f8d7a..276ef17a 100644 --- a/ci/configs/openbsd.bash +++ b/ci/configs/openbsd.bash @@ -1,5 +1,8 @@ CI_DESC="CI config for OpenBSD" CI_DIR=build-openbsd -export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-c++23-lambda-attributes" +# The -Wno-c2y-extensions flag can be dropped once the change +# from commit 3724713e82456ce7d66d1f377539dd2e142d969a becomes +# available in Clang. +export CXXFLAGS="-Werror -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wno-c++23-lambda-attributes -Wno-c2y-extensions" CMAKE_ARGS=(-G Ninja) BUILD_ARGS=(-k 0)