graphics/libyuv: fix strict-prototype warning

Added a patch file to fix the warning

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
This commit is contained in:
Peter Bee 2022-12-09 13:40:19 +08:00 committed by Xiang Xiao
parent 3e2c8fdb41
commit 091ff57126
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From d498349aeb061ab92e6f5eba2538d9f35206697c Mon Sep 17 00:00:00 2001
From: Peter Bee <bijunda1@xiaomi.com>
Date: Fri, 9 Dec 2022 13:36:33 +0800
Subject: [PATCH] include/libyuv: fix strict-prototype warning
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
---
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

View File

@ -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),)