mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 02:10:04 +00:00
gd: fix build with gcc 16
https://github.com/libgd/libgd/issues/990 Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
From 1bb2911c02193d32f1458b771c485980fd100010 Mon Sep 17 00:00:00 2001
|
||||
From: Markus Volk <f_l_k@t-online.de>
|
||||
Date: Sat, 30 May 2026 10:12:26 +0200
|
||||
Subject: [PATCH] gd.c: fix maybe_uninitialized
|
||||
|
||||
Upstream-Status: Pending [https://github.com/libgd/libgd/issues/990]
|
||||
---
|
||||
src/gd.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/gd.c b/src/gd.c
|
||||
index fd8d1aa2..6ffdd41f 100644
|
||||
--- a/src/gd.c
|
||||
+++ b/src/gd.c
|
||||
@@ -2069,7 +2069,7 @@ BGD_DECLARE(void) gdImageArc (gdImagePtr im, int cx, int cy, int w, int h, int s
|
||||
BGD_DECLARE(void) gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h, int s, int e,
|
||||
int color, int style)
|
||||
{
|
||||
- gdPoint pts[363];
|
||||
+ gdPoint pts[363] = {0};
|
||||
int i, pti;
|
||||
int lx = 0, ly = 0;
|
||||
int fx = 0, fy = 0;
|
||||
--
|
||||
2.54.0
|
||||
|
||||
@@ -16,6 +16,7 @@ DEPENDS = "freetype libpng jpeg zlib tiff"
|
||||
SRC_URI = "git://github.com/libgd/libgd.git;nobranch=1;protocol=https \
|
||||
file://0001-Fix-deprecared-function-prototypes.patch \
|
||||
file://Fix-ftype-missing-const.patch \
|
||||
file://0001-gd.c-fix-maybe_uninitialized.patch \
|
||||
"
|
||||
|
||||
SRCREV = "b5319a41286107b53daa0e08e402aa1819764bdc"
|
||||
|
||||
Reference in New Issue
Block a user