-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpidistro-vlc: Fix build with clang16
Disable new warning about incompatible function pointers Signed-off-by: Khem Raj <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...media/rpidistro-vlc/files/0008-configure-Disable-incompatible-function-pointer-type.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 048e4fdd08ac588feb27b03e3ec1824e24f77d62 Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <[email protected]> | ||
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 <[email protected]> | ||
--- | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters