From 091ff5712636fa0742b435aa85758e406019d828 Mon Sep 17 00:00:00 2001 From: Peter Bee Date: Fri, 9 Dec 2022 13:40:19 +0800 Subject: [PATCH] graphics/libyuv: fix strict-prototype warning Added a patch file to fix the warning Signed-off-by: Peter Bee --- ...-libyuv-fix-strict-prototype-warning.patch | 26 +++++++++++++++++++ graphics/libyuv/Makefile | 1 + 2 files changed, 27 insertions(+) create mode 100644 graphics/libyuv/0001-include-libyuv-fix-strict-prototype-warning.patch diff --git a/graphics/libyuv/0001-include-libyuv-fix-strict-prototype-warning.patch b/graphics/libyuv/0001-include-libyuv-fix-strict-prototype-warning.patch new file mode 100644 index 000000000..6fdacd5f3 --- /dev/null +++ b/graphics/libyuv/0001-include-libyuv-fix-strict-prototype-warning.patch @@ -0,0 +1,26 @@ +From d498349aeb061ab92e6f5eba2538d9f35206697c Mon Sep 17 00:00:00 2001 +From: Peter Bee +Date: Fri, 9 Dec 2022 13:36:33 +0800 +Subject: [PATCH] include/libyuv: fix strict-prototype warning + +Signed-off-by: Peter Bee +--- + include/libyuv/planar_functions.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/libyuv/planar_functions.h libyuv/include/libyuv/planar_functions.h +index fdecdee..3ae8896 100644 +--- a/include/libyuv/planar_functions.h ++++ libyuv/include/libyuv/planar_functions.h +@@ -744,7 +744,7 @@ typedef void (*ARGBBlendRow)(const uint8_t* src_argb0, + + // Get function to Alpha Blend ARGB pixels and store to destination. + LIBYUV_API +-ARGBBlendRow GetARGBBlend(); ++ARGBBlendRow GetARGBBlend(void); + + // Alpha Blend ARGB images and store to destination. + // Source is pre-multiplied by alpha using ARGBAttenuate. +-- +2.38.1 + diff --git a/graphics/libyuv/Makefile b/graphics/libyuv/Makefile index a6c781cce..c57dfb3b4 100644 --- a/graphics/libyuv/Makefile +++ b/graphics/libyuv/Makefile @@ -30,6 +30,7 @@ libyuv.tar.gz: $(Q) curl -L https://chromium.googlesource.com/libyuv/libyuv/+archive/refs/heads/$(CONFIG_LIBYUV_BRANCH).tar.gz -o libyuv.tar.gz $(Q) mkdir -p $(SRCDIR) $(Q) tar zxf libyuv.tar.gz --directory $(SRCDIR) + $(Q) patch -p0 < 0001-include-libyuv-fix-strict-prototype-warning.patch # Download and unpack tarball if no git repo found ifeq ($(wildcard libyuv/libyuv),)