dev-libs/argtable3: don't add -Werror to CFLAGS

Closes: https://bugs.gentoo.org/977580
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2026-06-17 14:45:48 -04:00
parent ddaf47c839
commit af7378f196

View File

@@ -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)