diff options
author | mark.yang <mark.yang@lge.com> | 2025-04-02 15:38:17 +0900 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-04-02 07:29:32 -0700 |
commit | c022f3ec33cb019aa6ac56d84c8cc4713f1ac645 (patch) | |
tree | 8f24a4dacc82e0e1baa47e759da4c77885b41e20 /meta-python/recipes-devtools/python/python3-aws-iot-device-sdk-python | |
parent | 0a4e093940df5b21ae216b9b4ed1488bdb9d23ce (diff) | |
download | meta-openembedded-c022f3ec33cb019aa6ac56d84c8cc4713f1ac645.tar.gz |
unbound: fix build with gcc-15.0.1
* fix following error:
http://errors.yoctoproject.org/Errors/Details/850313/
../git/compat/malloc.c:9:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch]
9 | void *malloc ();
| ^~~~~~
../git/compat/malloc.c:5:1: note: 'malloc' is declared in header '<stdlib.h>'
4 | #include "config.h"
+++ |+#include <stdlib.h>
5 | #undef malloc
../git/compat/malloc.c: In function 'rpl_malloc_unbound':
../git/compat/malloc.c:23:10: error: too many arguments to function 'malloc'; expected 0, have 1
23 | return malloc (n);
| ^~~~~~ ~
../git/compat/malloc.c:9:7: note: declared here
9 | void *malloc ();
| ^~~~~~
* Seeing that there is '#undef malloc', it appears they don't want to
use the malloc from stdlib.h.
Therefore, we need to correctly define the parameters for malloc.
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-aws-iot-device-sdk-python')
0 files changed, 0 insertions, 0 deletions