mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
dhex: fix error with gcc-15
* A strict error handling for function parameters in gcc-15 causes errors.
output.c:9:6: error: conflicting types for 'initcolors'; have 'void(tOutput *)' {aka 'void(struct _tOutput *)'}
9 | void initcolors(tOutput* output)
| ^~~~~~~~~~
In file included from output.c:7:
output.h:10:6: note: previous declaration of 'initcolors' with type 'void(void)'
10 | void initcolors();
| ^~~~~~~~~~
Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
31f49abf20
commit
fc28826b61
@ -0,0 +1,38 @@
|
||||
From 86491a25b9057576234d1eaf4da020413e7259ad Mon Sep 17 00:00:00 2001
|
||||
From: "mark.yang" <mark.yang@lge.com>
|
||||
Date: Tue, 8 Apr 2025 14:43:29 +0900
|
||||
Subject: [PATCH] Fix function declaration conflict error with empty parameters
|
||||
in gcc-15
|
||||
|
||||
* A strict error handling for function parameters in gcc-15 causes errors.
|
||||
output.c:9:6: error: conflicting types for 'initcolors'; have 'void(tOutput *)' {aka 'void(struct _tOutput *)'}
|
||||
9 | void initcolors(tOutput* output)
|
||||
| ^~~~~~~~~~
|
||||
In file included from output.c:7:
|
||||
output.h:10:6: note: previous declaration of 'initcolors' with type 'void(void)'
|
||||
10 | void initcolors();
|
||||
| ^~~~~~~~~~
|
||||
|
||||
|
||||
* This component is a personal project and is maintained through the maintainer's personal email.
|
||||
I have sent the patch via email and am waiting for a response.
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: mark.yang <mark.yang@lge.com>
|
||||
---
|
||||
output.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/output.h b/output.h
|
||||
index cef29e9..b2b5e38 100644
|
||||
--- a/output.h
|
||||
+++ b/output.h
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "machine_type.h"
|
||||
#include "datatypes.h"
|
||||
|
||||
-void initcolors();
|
||||
+void initcolors(tOutput* output);
|
||||
void colorpair(tOutput* output,uicolors uicol,short fg,short bg,int attr);
|
||||
void pairsinit(tOutput* output);
|
||||
void setcolor(tOutput* output,uicolors col);
|
||||
@ -7,7 +7,10 @@ DEPENDS = "ncurses"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://README.txt;beginline=229;endline=241;md5=6f252a421b65bcecf624382ba3c899da"
|
||||
|
||||
SRC_URI = "http://www.dettus.net/dhex/dhex_0.69.tar.gz"
|
||||
SRC_URI = " \
|
||||
http://www.dettus.net/dhex/dhex_0.69.tar.gz \
|
||||
file://0001-Fix-function-declaration-conflict-error-with-empty-p.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "52730bcd1cf16bd4dae0de42531be9a4057535ec61ca38c0804eb8246ea6c41b"
|
||||
|
||||
S = "${WORKDIR}/dhex_${PV}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user