mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 22:35:25 +01:00
nbench-byte: fix build error with gcc-15
* Fix the following build error with gcc-15:
nbench1.c:3520:13: error: conflicting types for 'adjust_mid_wts'; have 'void(int)'
3520 | static void adjust_mid_wts(int patt)
| ^~~~~~~~~~~~~~
In file included from nbench1.c:64:
nbench1.h:373:13: note: previous declaration of 'adjust_mid_wts' with type 'void(void)'
373 | static void adjust_mid_wts();
| ^~~~~~~~~~~~~~
Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
a3e34d2ada
commit
bb41040137
|
|
@ -0,0 +1,34 @@
|
|||
From 3ee8798764919cd3f7d983f99f6189bbb940d639 Mon Sep 17 00:00:00 2001
|
||||
From: "mark.yang" <mark.yang@lge.com>
|
||||
Date: Thu, 10 Apr 2025 10:53:14 +0900
|
||||
Subject: [PATCH] Fix build error with gcc-15
|
||||
|
||||
* Fix the following build error with gcc-15:
|
||||
nbench1.c:3520:13: error: conflicting types for 'adjust_mid_wts'; have 'void(int)'
|
||||
3520 | static void adjust_mid_wts(int patt)
|
||||
| ^~~~~~~~~~~~~~
|
||||
In file included from nbench1.c:64:
|
||||
nbench1.h:373:13: note: previous declaration of 'adjust_mid_wts' with type 'void(void)'
|
||||
373 | static void adjust_mid_wts();
|
||||
| ^~~~~~~~~~~~~~
|
||||
|
||||
Upstream-Status: Inappropriate [no upstream]
|
||||
|
||||
Signed-off-by: mark.yang <mark.yang@lge.com>
|
||||
---
|
||||
nbench1.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/nbench1.h b/nbench1.h
|
||||
index 13a5907..b81ca82 100644
|
||||
--- a/nbench1.h
|
||||
+++ b/nbench1.h
|
||||
@@ -370,7 +370,7 @@ static void do_out_error(int patt);
|
||||
static void worst_pass_error();
|
||||
static void do_mid_error();
|
||||
static void adjust_out_wts();
|
||||
-static void adjust_mid_wts();
|
||||
+static void adjust_mid_wts(int patt);
|
||||
static void do_back_pass(int patt);
|
||||
static void move_wt_changes();
|
||||
static int check_out_error();
|
||||
|
|
@ -9,7 +9,8 @@ SECTION = "console/utils"
|
|||
|
||||
SRC_URI = "https://fossies.org/linux/misc/old/${BP}.tar.gz \
|
||||
file://nbench_32bits.patch \
|
||||
file://Makefile-add-more-dependencies-to-pointer.h.patch"
|
||||
file://Makefile-add-more-dependencies-to-pointer.h.patch \
|
||||
file://0001-Fix-build-error-with-gcc-15.patch"
|
||||
|
||||
SRC_URI[sha256sum] = "723dd073f80e9969639eb577d2af4b540fc29716b6eafdac488d8f5aed9101ac"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user