diff options
author | mark.yang <mark.yang@lge.com> | 2025-04-10 13:50:48 +0900 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-04-10 08:31:05 -0700 |
commit | 6fd65c506a1b745ced83833d3fcc937be0c032c9 (patch) | |
tree | 88edad4de03d1e44b52838b8edcdb517bfc5507e /meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch | |
parent | 8c9c67abda245c4abc46b7af8c0e102a116b0a5f (diff) | |
download | meta-openembedded-6fd65c506a1b745ced83833d3fcc937be0c032c9.tar.gz |
lmbench: fix build error with gcc-15
* see more details
http://errors.yoctoproject.org/Errors/Details/851798/
lat_rpc.c:172:1: error: conflicting types for 'client_rpc_xact_1'; have 'char *(char *, CLIENT *)' {aka 'char *(char *, struct __rpc_client *)'}
172 | client_rpc_xact_1(char *argp, CLIENT *clnt)
| ^~~~~~~~~~~~~~~~~
bench.h:349:14: note: previous declaration of 'client_rpc_xact_1' with type 'char *(void)'
349 | extern char *client_rpc_xact_1();
| ^~~~~~~~~~~~~~~~~
lat_rpc.c: In function 'rpc_xact_1':
lat_rpc.c:189:1: warning: old-style function definition [-Wold-style-definition]
189 | rpc_xact_1(msg, transp)
| ^~~~~~~~~~
lat_rpc.c:192:1: error: number of arguments doesn't match prototype
192 | {
| ^
bench.h:348:14: error: prototype declaration
348 | extern char *rpc_xact_1();
| ^~~~~~~~~~
Fix errors due to old-style function declarations
The code was using old-style function declarations without proper prototypes,
which causes compilation errors with newer GCC versions. This patch updates
the function declarations to use modern C syntax with proper parameter types.
Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-matplotlib/matplotlib-disable-download.patch')
0 files changed, 0 insertions, 0 deletions