summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/dhex/dhex/0001-Fix-function-declaration-conflict-error-with-empty-p.patch38
-rw-r--r--meta-oe/recipes-support/dhex/dhex_0.69.bb5
2 files changed, 42 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/dhex/dhex/0001-Fix-function-declaration-conflict-error-with-empty-p.patch b/meta-oe/recipes-support/dhex/dhex/0001-Fix-function-declaration-conflict-error-with-empty-p.patch
new file mode 100644
index 0000000000..b4d7656aff
--- /dev/null
+++ b/meta-oe/recipes-support/dhex/dhex/0001-Fix-function-declaration-conflict-error-with-empty-p.patch
@@ -0,0 +1,38 @@
1From 86491a25b9057576234d1eaf4da020413e7259ad Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Tue, 8 Apr 2025 14:43:29 +0900
4Subject: [PATCH] Fix function declaration conflict error with empty parameters
5 in gcc-15
6
7* A strict error handling for function parameters in gcc-15 causes errors.
8output.c:9:6: error: conflicting types for 'initcolors'; have 'void(tOutput *)' {aka 'void(struct _tOutput *)'}
9 9 | void initcolors(tOutput* output)
10 | ^~~~~~~~~~
11In file included from output.c:7:
12output.h:10:6: note: previous declaration of 'initcolors' with type 'void(void)'
13 10 | void initcolors();
14 | ^~~~~~~~~~
15
16
17* This component is a personal project and is maintained through the maintainer's personal email.
18 I have sent the patch via email and am waiting for a response.
19
20Upstream-Status: Pending
21Signed-off-by: mark.yang <mark.yang@lge.com>
22---
23 output.h | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26diff --git a/output.h b/output.h
27index cef29e9..b2b5e38 100644
28--- a/output.h
29+++ b/output.h
30@@ -7,7 +7,7 @@
31 #include "machine_type.h"
32 #include "datatypes.h"
33
34-void initcolors();
35+void initcolors(tOutput* output);
36 void colorpair(tOutput* output,uicolors uicol,short fg,short bg,int attr);
37 void pairsinit(tOutput* output);
38 void setcolor(tOutput* output,uicolors col);
diff --git a/meta-oe/recipes-support/dhex/dhex_0.69.bb b/meta-oe/recipes-support/dhex/dhex_0.69.bb
index e0026f92dc..14e6ec7112 100644
--- a/meta-oe/recipes-support/dhex/dhex_0.69.bb
+++ b/meta-oe/recipes-support/dhex/dhex_0.69.bb
@@ -7,7 +7,10 @@ DEPENDS = "ncurses"
7LICENSE = "GPL-2.0-or-later" 7LICENSE = "GPL-2.0-or-later"
8LIC_FILES_CHKSUM = "file://README.txt;beginline=229;endline=241;md5=6f252a421b65bcecf624382ba3c899da" 8LIC_FILES_CHKSUM = "file://README.txt;beginline=229;endline=241;md5=6f252a421b65bcecf624382ba3c899da"
9 9
10SRC_URI = "http://www.dettus.net/dhex/dhex_0.69.tar.gz" 10SRC_URI = " \
11 http://www.dettus.net/dhex/dhex_0.69.tar.gz \
12 file://0001-Fix-function-declaration-conflict-error-with-empty-p.patch \
13"
11SRC_URI[sha256sum] = "52730bcd1cf16bd4dae0de42531be9a4057535ec61ca38c0804eb8246ea6c41b" 14SRC_URI[sha256sum] = "52730bcd1cf16bd4dae0de42531be9a4057535ec61ca38c0804eb8246ea6c41b"
12 15
13S = "${WORKDIR}/dhex_${PV}" 16S = "${WORKDIR}/dhex_${PV}"