git: ddda6e3a4717 - main - multimedia/mplayer: Update CFLAGS for clang16+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 29 Jul 2023 09:09:50 UTC
The branch main has been updated by riggs: URL: https://cgit.FreeBSD.org/ports/commit/?id=ddda6e3a47177bce8e76fa8a90162227c73f4dfe commit ddda6e3a47177bce8e76fa8a90162227c73f4dfe Author: Thomas Zander <riggs@FreeBSD.org> AuthorDate: 2023-07-29 09:06:18 +0000 Commit: Thomas Zander <riggs@FreeBSD.org> CommitDate: 2023-07-29 09:09:47 +0000 multimedia/mplayer: Update CFLAGS for clang16+ clang16+ will error on incompatible function pointer types. Workaround by adding -Wno-incompatible-function-pointer-types to clang CFLAGS. --- multimedia/mplayer/Makefile.options | 2 ++ 1 file changed, 2 insertions(+) diff --git a/multimedia/mplayer/Makefile.options b/multimedia/mplayer/Makefile.options index afbc1e060369..f7392d0b2314 100644 --- a/multimedia/mplayer/Makefile.options +++ b/multimedia/mplayer/Makefile.options @@ -41,6 +41,8 @@ DEFAULT_KERN_HZ=1024 .if ${CHOSEN_COMPILER_TYPE} == clang EXTRA_PATCHES+= ${FILESDIR}/extra-patch-clang-version +# Turn off incompatible function pointer check for clang16+ +CFLAGS+= -Wno-incompatible-function-pointer-types # Require 16 byte stack realignment on i386 to interface # properly with hand crafted assembler code in ffmpeg CFLAGS_i386+= -mstack-alignment=16 -mstackrealign