diff --git a/dev-libs/argtable3/argtable3-3.3.1.ebuild b/dev-libs/argtable3/argtable3-3.3.1.ebuild index d2bb5550a9489..5f8477c12b8e2 100644 --- a/dev-libs/argtable3/argtable3-3.3.1.ebuild +++ b/dev-libs/argtable3/argtable3-3.3.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -25,6 +25,12 @@ KEYWORDS="~amd64 ~riscv" IUSE="examples test" RESTRICT="!test? ( test )" +src_prepare() { + # Don't append -Werror to CFLAGS. + sed -e '/set(CMAKE_C_FLAGS.*-Werror/d' -i src/CMakeLists.txt || die + cmake_src_prepare +} + src_configure() { local mycmakeargs=( -DARGTABLE3_ENABLE_TESTS=$(usex test)