diff options
| author | mark.yang <mark.yang@lge.com> | 2025-04-10 14:39:20 +0900 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-04-10 08:31:05 -0700 |
| commit | 41ea13385170eacc1bc235256a370551830b8b30 (patch) | |
| tree | 17b9057e7de07674e45dad08a5cfd09741eb96f8 /meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1 | |
| parent | 6fd65c506a1b745ced83833d3fcc937be0c032c9 (diff) | |
| download | meta-openembedded-41ea13385170eacc1bc235256a370551830b8b30.tar.gz | |
dhrystone: fix build error with gcc-15
* fix too many arguments error
dhry_1.c: In function 'main':
dhry_1.c:176:23: error: too many arguments to function 'Func_1'; expected 0, have 2
176 | if (Enum_Loc == Func_1 (Ch_Index, 'C'))
| ^~~~~~ ~~~~~~~~
dhry_1.c:33:17: note: declared here
33 | Enumeration Func_1 ();
| ^~~~~~
Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1')
| -rw-r--r-- | meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch b/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch new file mode 100644 index 0000000000..63701d9c97 --- /dev/null +++ b/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From a0a976c0c4c2b92d61e71e00be4adfd8ea6d0d8f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "mark.yang" <mark.yang@lge.com> | ||
| 3 | Date: Thu, 10 Apr 2025 14:14:15 +0900 | ||
| 4 | Subject: [PATCH] fix too many arguments error in gcc15 | ||
| 5 | |||
| 6 | dhry_1.c: In function 'main': | ||
| 7 | dhry_1.c:176:23: error: too many arguments to function 'Func_1'; expected 0, have 2 | ||
| 8 | 176 | if (Enum_Loc == Func_1 (Ch_Index, 'C')) | ||
| 9 | | ^~~~~~ ~~~~~~~~ | ||
| 10 | dhry_1.c:33:17: note: declared here | ||
| 11 | 33 | Enumeration Func_1 (); | ||
| 12 | | ^~~~~~ | ||
| 13 | |||
| 14 | Upstream-Status: Inactive-Upstream [lastrelease: 1988] | ||
| 15 | Signed-off-by: mark.yang <mark.yang@lge.com> | ||
| 16 | --- | ||
| 17 | dhry_1.c | 2 +- | ||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/dhry_1.c b/dhry_1.c | ||
| 21 | index b081b86..e5a4873 100644 | ||
| 22 | --- a/dhry_1.c | ||
| 23 | +++ b/dhry_1.c | ||
| 24 | @@ -30,7 +30,7 @@ char Ch_1_Glob, | ||
| 25 | int Arr_1_Glob [50]; | ||
| 26 | int Arr_2_Glob [50] [50]; | ||
| 27 | |||
| 28 | -Enumeration Func_1 (); | ||
| 29 | +Enumeration Func_1 (Capital_Letter Ch_1_Par_Val, Capital_Letter Ch_2_Par_Val); | ||
| 30 | /* forward declaration necessary since Enumeration may not simply be int */ | ||
| 31 | |||
| 32 | #ifndef REG | ||
