From 930d976f90d393f70442de321c24972c48ddbccd Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 11 Dec 2024 21:10:02 +0100 Subject: [PATCH] Add mitigation for v31.x build error Signed-off-by: Knut Ahlers --- PKGBUILD | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index 7ccea4b..76ec2e2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -71,6 +71,9 @@ prepare() { } build() { + # Mitigate `error: ‘sample_fmts’ is deprecated` in v31.x + export CFLAGS+=" -Wno-error=deprecated-declarations" + cmake -B build -S $pkgname \ -DFFnvcodec_INCLUDE_DIR="nv-codec-headers-12.1.14.0/include/" \ -DCMAKE_INSTALL_PREFIX=/usr \