mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
rpidistro-vlc: Fix build with clang16
Disable new warning about incompatible function pointers Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
1e5acb9d59
commit
3afdbbf782
|
@ -0,0 +1,26 @@
|
||||||
|
From 048e4fdd08ac588feb27b03e3ec1824e24f77d62 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Sun, 5 Mar 2023 14:13:25 -0800
|
||||||
|
Subject: [PATCH 3/3] configure: Disable incompatible-function-pointer-types
|
||||||
|
warning
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
configure.ac | 5 +++++
|
||||||
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -105,6 +105,11 @@ AC_SUBST([AM_CFLAGS], [-fcommon])
|
||||||
|
dnl Prevent clang from accepting unknown flags with a mere warning
|
||||||
|
AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CFLAGS])
|
||||||
|
AX_APPEND_COMPILE_FLAGS([-Werror=unknown-warning-option -Werror=invalid-command-line-argument], [CXXFLAGS])
|
||||||
|
+dnl disable clang from erroring on function pointer protype mismatch, vlc seems to rely on that
|
||||||
|
+dnl especially in modules/video_filter/deinterlace/algo_yadif.c how it interpolates 'filter` variable
|
||||||
|
+dnl between different functions yadif_filter_line_c_16bit() and yadif_filter_line_c()
|
||||||
|
+AX_APPEND_COMPILE_FLAGS([-Wno-error=incompatible-function-pointer-types -Wno-error=incompatible-function-pointer-types], [CFLAGS])
|
||||||
|
+AX_APPEND_COMPILE_FLAGS([-Wno-error=incompatible-function-pointer-types -Wno-error=incompatible-function-pointer-types], [CXXFLAGS])
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Check the operating system
|
|
@ -14,6 +14,7 @@ SRC_URI = "\
|
||||||
file://0005-mmal_exit_fix.patch \
|
file://0005-mmal_exit_fix.patch \
|
||||||
file://0006-mmal_chain.patch \
|
file://0006-mmal_chain.patch \
|
||||||
file://0007-armv6.patch \
|
file://0007-armv6.patch \
|
||||||
|
file://0008-configure-Disable-incompatible-function-pointer-type.patch \
|
||||||
file://2001-fix-luaL-checkint.patch \
|
file://2001-fix-luaL-checkint.patch \
|
||||||
file://2002-use-vorbisidec.patch \
|
file://2002-use-vorbisidec.patch \
|
||||||
file://3001-configure.ac-setup-for-OE-usage.patch \
|
file://3001-configure.ac-setup-for-OE-usage.patch \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user