Skip to content

Commit bb98bd6

Browse files
Flavio CeolinMaureenHelm
authored andcommitted
libc: newlib: Fix declare a type conflict
Fix a variable declaration type conflict: libc-hooks.c:92:16: error: conflicting types for '_heap_sentry' 92 | extern void *_heap_sentry; soc.h:78:13: note: previous declaration of '_heap_sentry' was here Fixes #44926 Signed-off-by: Flavio Ceolin <[email protected]>
1 parent aaf0c6e commit bb98bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libc/newlib/libc-hooks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
/* End of the malloc arena is the end of physical memory */
9090
#if defined(CONFIG_XTENSA)
9191
/* TODO: Why is xtensa a special case? */
92-
extern void *_heap_sentry;
92+
extern char _heap_sentry[];
9393
#define MAX_HEAP_SIZE (POINTER_TO_UINT(&_heap_sentry) - \
9494
HEAP_BASE)
9595
#else

0 commit comments

Comments
 (0)